Skip to content

Commit f640878

Browse files
committed
Remove import-untyped from disabled error codes
1 parent d4902e4 commit f640878

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,18 @@ reportUnsupportedDunderAll = "error"
140140
[tool.mypy]
141141
python_version = "3.9" # Target oldest supported Python version
142142
strict = true
143-
follow_untyped_imports = true # Don't infer symbols from untyped packages as Any
144143
check_untyped_defs = true # Strict check on all defs
145144
show_column_numbers = true
145+
# Not all imports in these stubs are gonna be typed
146+
# Don't infer symbols from untyped packages as Any
147+
follow_untyped_imports = true
146148
warn_unused_ignores = false # Change from pandas
147149
# Partial stubs are acceptable
148150
disallow_any_generics = false
149151
disallow_incomplete_defs = false
150152
disallow_untyped_defs = false
151153
# Suppressing errors
152154
disable_error_code = [
153-
# Not all imports in these stubs are gonna be typed
154-
"import-untyped",
155155
# mypy's overload implementation differs from pyright
156156
# `assert-type` issues is tests mostly comme from checking overloads
157157
# Since this project is specific to Pylance, just ignore them
@@ -167,8 +167,6 @@ disable_error_code = [
167167
# These modules are to be removed soon, not worth solving many issues
168168
module = ["matplotlib.*", "networkx.*"]
169169
disable_error_code = [
170-
"valid-type",
171-
"override",
172170
"assignment",
173171
"misc",
174172
]

0 commit comments

Comments
 (0)