Skip to content

Commit

Permalink
dev env: bump mypy from 0.982 to 0.990
Browse files Browse the repository at this point in the history
  • Loading branch information
fphammerle committed Nov 14, 2022
2 parents cc795e6 + 83b0322 commit 6c6fd4b
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 46 deletions.
12 changes: 12 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@ typed-ast = {markers = "python_version < '3.8'"}
# > E ModuleNotFoundError: No module named 'backports'
# > Error: Process completed with exit code 4.
"backports.zoneinfo" = {version = "*", markers = "python_version <= '3.8'"}
# > File "[...]/lib/python3.10/site-packages/_pytest/_code/code.py", line 60, in <module>
# > from exceptiongroup import BaseExceptionGroup
# > ModuleNotFoundError: No module named 'exceptiongroup'
exceptiongroup = {markers = "python_version < '3.11'"}
# > File "[...]/lib/python3.10/site-packages/_pytest/config/findpaths.py", line 71, in load_config_dict_from_file
# > import tomli as tomllib
# > ModuleNotFoundError: No module named 'tomli'
tomli = {markers = "python_version < '3.11'"}
# > File "[...]/lib/python3.10/site-packages/astroid/decorators.py", line 16, in <module>
# > import wrapt
# > ModuleNotFoundError: No module named 'wrapt'
wrapt = "*"

[requires]
python_version = "3"
Expand Down
98 changes: 53 additions & 45 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion location_guessing_game_telegram_bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ def _run(
use_context=True,
persistence=_Persistence(photos=photos),
)
updater.dispatcher.add_handler(telegram.ext.CommandHandler("photo", _photo_command))
# workaround for mypy reporting
# > error: Cannot determine type of "dispatcher" [has-type]
dispatcher: telegram.ext.dispatcher.Dispatcher = updater.dispatcher # type: ignore
dispatcher.add_handler(telegram.ext.CommandHandler("photo", _photo_command))
updater.start_polling()


Expand Down

0 comments on commit 6c6fd4b

Please sign in to comment.