Improve type completeness

This commit is contained in:
Hinrich Mahler 2024-12-29 14:11:13 +01:00
parent 71c0ee572c
commit 1f8e44cc7d

View file

@ -696,7 +696,7 @@ class JobQueue(Generic[CCT]):
# so give it a tiny bit of time to actually shut down.
await asyncio.sleep(0.01)
def jobs(self, pattern: Union[str, re.Pattern, None] = None) -> tuple["Job[CCT]", ...]:
def jobs(self, pattern: Union[str, re.Pattern[str], None] = None) -> tuple["Job[CCT]", ...]:
"""Returns a tuple of all *scheduled* jobs that are currently in the :class:`JobQueue`.
Args: