@@ -85,8 +85,7 @@ extra-standard-library = [
85
85
[tool .pyright ]
86
86
exclude = [" build" , " .git" ]
87
87
stubPath = " ./stubs"
88
- # Target oldest supported Python version
89
- pythonversion = " 3.9"
88
+ pythonversion = " 3.9" # Target oldest supported Python version
90
89
typeCheckingMode = " standard"
91
90
# Partial stubs are acceptable
92
91
reportUnknownArgumentType = false
@@ -110,24 +109,18 @@ reportSelfClsParameterName = false
110
109
reportUnsupportedDunderAll = " error"
111
110
112
111
[tool .mypy ]
113
- # Target oldest supported Python version
114
- python_version = " 3.9 "
115
- # Allow dynamic typing
116
- disallow_any_unimported = false # TODO
117
- disallow_any_expr = false # TODO
118
- disallow_any_decorated = false # TODO
119
- disallow_any_explicit = false # TODO
120
- disallow_any_generics = false # TODO
121
- disallow_subclassing_any = false # TODO
122
- # Untyped definitions and calls
112
+ python_version = " 3.9 " # Target oldest supported Python version
113
+ strict = true
114
+ show_column_numbers = true
115
+ warn_unused_ignores = false # Change from pandas
116
+ # Partial stubs are acceptable
117
+ disallow_any_generics = false
118
+ disallow_incomplete_defs = false
119
+ disallow_untyped_defs = false
120
+ # Allow dynamic typing in our own code
121
+ warn_return_any = false # TODO
123
122
disallow_untyped_calls = false # TODO
124
- disallow_untyped_defs = false # TODO
125
- disallow_incomplete_defs = false # TODO
126
123
check_untyped_defs = true
127
- disallow_untyped_decorators = true
128
- # Configuring warnings
129
- warn_redundant_casts = true
130
- warn_unused_ignores = false # Change from pandas
131
124
# Suppressing errors
132
125
disable_error_code = [
133
126
# Not all imports in these stubs are gonna be typed
@@ -143,9 +136,6 @@ disable_error_code = [
143
136
" operator" ,
144
137
" override" ,
145
138
" return" ,
146
- " type-var" ,
147
139
" valid-type" ,
148
140
" var-annotated" ,
149
141
]
150
- # Configuring error messages
151
- show_column_numbers = true
0 commit comments