@@ -117,7 +117,6 @@ disallow_subclassing_any = false
117117always_true = [" NP125" , " NP126" , " NP20" , " NP21" , " NP22" , " NP23" ]
118118
119119[tool .pyright ]
120- include = [" scipy-stubs" , " scripts" , " tests" ]
121120ignore = [" .venv" ]
122121stubPath = " ."
123122pythonPlatform = " All"
@@ -133,10 +132,7 @@ reportPropertyTypeMismatch = false
133132reportShadowedImports = true
134133reportUninitializedInstanceVariable = true
135134reportUnnecessaryTypeIgnoreComment = true
136- reportUnusedExpression = false
137-
138- # overridden in the execution environments
139- reportInvalidStubStatement = false
135+ reportUnusedCallResult = true
140136
141137# type-checkers should type-check; linters should lint
142138reportImplicitStringConcatenation = false
@@ -153,19 +149,11 @@ reportPrivateLocalImportUsage = true
153149reportUnannotatedClassAttribute = false
154150strictGenericNarrowing = false
155151
156- [[executionEnvironments ]]
157- root = " scipy-stubs"
158- reportInvalidStubStatement = true
159- reportUnusedCallResult = true
160- reportUnusedExpression = true
161-
162- [[executionEnvironments ]]
152+ [[tool .pyright .executionEnvironments ]]
163153root = " 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
169157
170158[tool .pyright .defineConstant ]
171159# optype.numpy compat
0 commit comments