Enable implicit_optional for telegram

This commit is contained in:
Matthias 2023-01-21 20:00:45 +01:00
parent 795934116d
commit 741d2db334

View File

@ -40,6 +40,11 @@ exclude = [
module = "tests.*" module = "tests.*"
ignore_errors = true ignore_errors = true
[[tool.mypy.overrides]]
# Telegram does not use implicit_optional = false in the current version.
module = "telegram.*"
implicit_optional = true
[build-system] [build-system]
requires = ["setuptools >= 46.4.0", "wheel"] requires = ["setuptools >= 46.4.0", "wheel"]
build-backend = "setuptools.build_meta" build-backend = "setuptools.build_meta"