mirror of https://github.com/rq/rq.git
Fix typing
This commit is contained in:
parent
03a08e1c79
commit
bb7f340537
|
@ -348,7 +348,7 @@ class Queue:
|
|||
Returns:
|
||||
_type_: _description_
|
||||
"""
|
||||
job_id = job_or_id.id if isinstance(job_or_id, self.job_class) else job_or_id
|
||||
job_id = cast(str, job_or_id.id if isinstance(job_or_id, self.job_class) else job_or_id)
|
||||
|
||||
if self.get_redis_server_version() >= (6, 0, 6):
|
||||
try:
|
||||
|
@ -461,7 +461,7 @@ class Queue:
|
|||
Returns:
|
||||
_type_: _description_
|
||||
"""
|
||||
job_id: str = job_or_id.id if isinstance(job_or_id, self.job_class) else job_or_id
|
||||
job_id = cast(str, job_or_id.id if isinstance(job_or_id, self.job_class) else job_or_id)
|
||||
|
||||
if pipeline is not None:
|
||||
return pipeline.lrem(self.key, 1, job_id)
|
||||
|
|
Loading…
Reference in New Issue