@@ -117,7 +117,6 @@ disallow_subclassing_any = false
117
117
always_true = [" NP125" , " NP126" , " NP20" , " NP21" , " NP22" , " NP23" ]
118
118
119
119
[tool .pyright ]
120
- include = [" scipy-stubs" , " scripts" , " tests" ]
121
120
ignore = [" .venv" ]
122
121
stubPath = " ."
123
122
pythonPlatform = " All"
@@ -133,10 +132,7 @@ reportPropertyTypeMismatch = false
133
132
reportShadowedImports = true
134
133
reportUninitializedInstanceVariable = true
135
134
reportUnnecessaryTypeIgnoreComment = true
136
- reportUnusedExpression = false
137
-
138
- # overridden in the execution environments
139
- reportInvalidStubStatement = false
135
+ reportUnusedCallResult = true
140
136
141
137
# type-checkers should type-check; linters should lint
142
138
reportImplicitStringConcatenation = false
@@ -153,19 +149,11 @@ reportPrivateLocalImportUsage = true
153
149
reportUnannotatedClassAttribute = false
154
150
strictGenericNarrowing = false
155
151
156
- [[executionEnvironments ]]
157
- root = " scipy-stubs"
158
- reportInvalidStubStatement = true
159
- reportUnusedCallResult = true
160
- reportUnusedExpression = true
161
-
162
- [[executionEnvironments ]]
152
+ [[tool .pyright .executionEnvironments ]]
163
153
root = " tests"
164
- reportAny = true
165
- reportExplicitAny = true
166
- reportPrivateUsage = true
167
- reportUnreachable = true
168
- reportUnsafeMultipleInheritance = true # base
154
+ reportInvalidStubStatement = false
155
+ reportUnusedCallResult = false
156
+ reportUnusedExpression = false
169
157
170
158
[tool .pyright .defineConstant ]
171
159
# optype.numpy compat
0 commit comments