Open
Description
When we do a merge, we run pyright using the strict
option. Current statistics on the types of errors found:
reportUnknownMemberType 2387
reportUnknownParameterType 2112
reportMissingTypeArgument 1560
reportMissingParameterType 1247
reportUnknownArgumentType 613
reportUnknownVariableType 428
reportUnusedVariable 88
reportUnknownLambdaType 58
reportUnusedExpression 41
reportPrivateUsage 15
reportMissingTypeStubs 7
Can be output by running poe test pyright_strict
There are 8556 errors, and 3541 of them are in the stubs themselves. Rest are reported from the tests (but may be due to the stubs).
FYI for @MarcoGorelli
Some simple things that would help:
- Change references to
npt.NDArray
to benpt.NDArray[Any, Any]
- Change
args
andkwargs
(see question: how to type compatibility-onlyargs
/kwargs
? #1168) in all stubs file - Maybe change references from plain
Series
toUnknownSeries
and change from plainIndex
toUnknownIndex
in all stubs file
Metadata
Metadata
Assignees
Labels
No labels