microsoft / pyright

Static Type Checker for Python
Other
12.7k stars 1.35k forks source link

Improved performance of type analysis by caching additional reachabil… #8280

Closed erictraut closed 2 weeks ago

erictraut commented 2 weeks ago

…ity information for code flow graphs. This addresses #8275.

github-actions[bot] commented 2 weeks ago

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

mkosi (https://github.com/systemd/mkosi)
+ /tmp/mypy_primer/projects/mkosi/mkosi/installer/dnf.py
+   /tmp/mypy_primer/projects/mkosi/mkosi/installer/dnf.py:189:10 - error: Function with declared return type "CompletedProcess" must return value on all code paths
+     "None" is incompatible with "CompletedProcess[str]" (reportReturnType)
- 11 errors, 0 warnings, 0 informations 
+ 12 errors, 0 warnings, 0 informations