Skip to content

Commit 8da5d55

Browse files
bqbackBibo-Joshi
andauthored
Update /compat regex pattern with the update_queue TypeError (#136)
* Compat taghint by regex * black fixes * CI fixes * Fix a bit * update_queue compat error * Fix line length, add the Filters error * Trailing whitespace fix * Bump python-Levenshtein version to 0.25.0 * Revert "Bump python-Levenshtein version to 0.25.0" --------- Co-authored-by: Hinrich Mahler <[email protected]>
1 parent 300aa45 commit 8da5d55

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

components/const.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,19 @@
238238
COMPAT_ERRORS = re.compile(
239239
r"""
240240
(
241-
(Updater\._{0,2}init_{0,2}\(\)\ got\ an\ )?
242-
unexpected\ keyword\ argument\ ['"]*(use_context|token|use_controls|dispatcher)['"]*
241+
(Updater\._{0,2}init_{0,2}\(\))?
242+
(
243+
\ got\ an\ unexpected\ keyword\ argument
244+
\ ['"]*(use_context|token|use_controls|dispatcher)['"]*
245+
|
246+
\ missing\ 1\ required\ positional\ argument:\ ['"]*update_queue['"]*
247+
)
243248
)|(
244249
updater\.(idle\(\)|dispatcher)
245250
)|(
246251
dispatcher.add_handler\(
252+
)|(
253+
cannot\ import\ name\ ['"]*Filters['"]*
247254
)
248255
""",
249256
flags=re.VERBOSE,

0 commit comments

Comments
 (0)