From 1f8e44cc7d3f00508d04561453b0159c02612185 Mon Sep 17 00:00:00 2001 From: Hinrich Mahler <22366557+Bibo-Joshi@users.noreply.github.com> Date: Sun, 29 Dec 2024 14:11:13 +0100 Subject: [PATCH] Improve type completeness --- telegram/ext/_jobqueue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegram/ext/_jobqueue.py b/telegram/ext/_jobqueue.py index 78d6be55c..5c08b0dc8 100644 --- a/telegram/ext/_jobqueue.py +++ b/telegram/ext/_jobqueue.py @@ -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: