microsoft / pyright

Static Type Checker for Python
Other
13.04k stars 1.39k forks source link

Fixed a bug that results in a false positive `reportOverlappingOverlo… #8393

Closed erictraut closed 1 month ago

erictraut commented 1 month ago

…aderror in certain cases involvingParamSpecandConcatenate`. This addresses #8389.

github-actions[bot] commented 1 month ago

Diff from mypy_primer, showing the effect of this PR on open source code:

mypy (https://github.com/python/mypy)
- /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/concurrent/futures/process.pyi
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/concurrent/futures/process.pyi:185:13 - error: Overload 2 for "__init__" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/concurrent/futures/process.pyi:195:13 - error: Overload 3 for "__init__" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
- /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/concurrent/futures/thread.pyi
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/concurrent/futures/thread.pyi:63:9 - error: Overload 2 for "__init__" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
-   /tmp/mypy_primer/projects/mypy/mypy/typeshed/stdlib/concurrent/futures/thread.pyi:72:9 - error: Overload 3 for "__init__" will never be used because its parameters overlap overload 1 (reportOverlappingOverload)
- 1746 errors, 108 warnings, 0 informations 
+ 1742 errors, 108 warnings, 0 informations