From 741d2db334a6dd44155748f0204a64df08723a83 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 21 Jan 2023 20:00:45 +0100 Subject: [PATCH] Enable implicit_optional for telegram --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 329728966..ecc336092 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,11 @@ exclude = [ module = "tests.*" ignore_errors = true +[[tool.mypy.overrides]] +# Telegram does not use implicit_optional = false in the current version. +module = "telegram.*" +implicit_optional = true + [build-system] requires = ["setuptools >= 46.4.0", "wheel"] build-backend = "setuptools.build_meta"