Normally, new pyright releases are published each Tuesday. This is an out-of-cycle release that addresses several regressions introduced in 1.1.340. These were all related to a massive change (one that affected a majority of the source files in pyright) that changed the way that file paths were tracked internally. Pyright now uses URIs rather than simple paths — a change that's needed to support a number of language server features.
Bug Fixes:
- Fixed regression introduced in 1.1.340 that caused a crash in the
--verifytypes
functionality. - Fixed regression introduced in 1.1.340 that resulted in an incorrect URI returned as part of a language server "rename" request.
- Fixed regression introduced in 1.1.340 that resulted in an unintended schema change for the
outputjson
output. - Fixed regression introduced in 1.1.340 that resulted in a crash when using file watchers (
--watch
option). - Fixed regression introduced in 1.1.340 that resulted in incorrect import resolution for certain namespace packages.
- Fixed bug that resulted in a false positive error when one ParamSpec was captured by another ParamSpec.
- Fixed bug related to function type compatibility when the dest type contains an unpacked tuple followed by one or more positional-only parameters as in
Callable[[*Ts, int], None]
.
Enhancements:
- Improved signature help provider so it handles overloaded
__init__
and__new__
methods when calling a constructor. - Updated typeshed stubs to the latest version.