diff --git a/pyproject.toml b/pyproject.toml index 082c469e..f2ba107b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -79,12 +79,15 @@ force-exclude = "tests/exceptions/source/modern/*" line-length = 100 target-version = ["py35"] +[tool.pyright] +# Types are defined in a stub file. Unfortunately, type checkers such as Pyright and Mypy are +# unable to "merge" them with the file containing the actual Python implementation. This causes +# many false positives, therefore type checking is disabled to avoid noisy errors in the editor. +typeCheckingMode = "off" + [tool.flit.module] name = "loguru" -[tool.mypy] -strict = true - [tool.pytest.ini_options] addopts = "-l" filterwarnings = [