Closed erictraut closed 2 weeks ago
Thanks :)
Diff from mypy_primer, showing the effect of this PR on open source code:
Tanjun (https://github.com/FasterSpeeding/Tanjun)
+ /tmp/mypy_primer/projects/Tanjun/tanjun/annotations.py:1466:66 - error: Unnecessary "# pyright: ignore" rule: "reportArgumentType" (reportUnnecessaryTypeIgnoreComment)
- 2518 errors, 6680 warnings, 0 informations
+ 2519 errors, 6680 warnings, 0 informations
…onstructor to a callable and the constructed class has a metaclass with a
__call__
method whosecls
parameter is annotated withtype[T]
. This addresses https://github.com/microsoft/pylance-release/issues/6297.