Skip to content

Commit 9c7e9a1

Browse files
committed
Merge branch 'main' of https://github.com/microsoft/python-type-stubs into Use-class-based-NamedTuples
2 parents 3049ffa + dcb5c8c commit 9c7e9a1

1 file changed

Lines changed: 11 additions & 21 deletions

File tree

pyproject.toml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ extra-standard-library = [
8484
[tool.pyright]
8585
exclude = ["build", ".git"]
8686
stubPath = "./stubs"
87-
# Target oldest supported Python version
88-
pythonversion = "3.9"
87+
pythonversion = "3.9" # Target oldest supported Python version
8988
typeCheckingMode = "standard"
9089
# Partial stubs are acceptable
9190
reportUnknownArgumentType = false
@@ -109,24 +108,18 @@ reportSelfClsParameterName = false
109108
reportUnsupportedDunderAll = "error"
110109

111110
[tool.mypy]
112-
# Target oldest supported Python version
113-
python_version = "3.9"
114-
# Allow dynamic typing
115-
disallow_any_unimported = false # TODO
116-
disallow_any_expr = false # TODO
117-
disallow_any_decorated = false # TODO
118-
disallow_any_explicit = false # TODO
119-
disallow_any_generics = false # TODO
120-
disallow_subclassing_any = false # TODO
121-
# Untyped definitions and calls
111+
python_version = "3.9" # Target oldest supported Python version
112+
strict = true
113+
show_column_numbers = true
114+
warn_unused_ignores = false # Change from pandas
115+
# Partial stubs are acceptable
116+
disallow_any_generics = false
117+
disallow_incomplete_defs = false
118+
disallow_untyped_defs = false
119+
# Allow dynamic typing in our own code
120+
warn_return_any = false # TODO
122121
disallow_untyped_calls = false # TODO
123-
disallow_untyped_defs = false # TODO
124-
disallow_incomplete_defs = false # TODO
125122
check_untyped_defs = true
126-
disallow_untyped_decorators = true
127-
# Configuring warnings
128-
warn_redundant_casts = true
129-
warn_unused_ignores = false # Change from pandas
130123
# Suppressing errors
131124
disable_error_code = [
132125
# Not all imports in these stubs are gonna be typed
@@ -142,9 +135,6 @@ disable_error_code = [
142135
"operator",
143136
"override",
144137
"return",
145-
"type-var",
146138
"valid-type",
147139
"var-annotated",
148140
]
149-
# Configuring error messages
150-
show_column_numbers = true

0 commit comments

Comments
 (0)