Skip to content

Commit

Permalink
Disable Mypy / Pyright type checkers due to stub file incompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed Nov 25, 2024
1 parent 5f3c3e9 commit ad18146
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit ad18146

Please sign in to comment.