Skip to content

Commit

Permalink
🧪 Start running MyPy against multidict dir
Browse files Browse the repository at this point in the history
Resolves #945
  • Loading branch information
webknjaz committed Feb 3, 2024
1 parent 354ba57 commit df4e01d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .mypy.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[mypy]
files =
docs/,
multidict/,
tests/
check_untyped_defs = True
# Causes comparison errors with Dict.
Expand Down Expand Up @@ -33,6 +34,10 @@ disable_error_code =
no-untyped-def,
type-arg,

[mypy-multidict._multidict_base]
disable_error_code =
no-untyped-def

[mypy-multidict._multidict_py]
disable_error_code =
attr-defined,
Expand Down
2 changes: 1 addition & 1 deletion multidict/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@

if USE_EXTENSIONS:
try:
from . import _multidict # noqa
from . import _multidict # type: ignore[attr-defined] # noqa: F401
except ImportError:
USE_EXTENSIONS = False

0 comments on commit df4e01d

Please sign in to comment.