npm pyright 1.1.131
Published 1.1.131

latest releases: 1.1.367, 1.1.366, 1.1.365...
3 years ago

Bug Fix: Changed logic that detects generator functions to accommodate yield statements that are provably unreachable in the code flow.

Behavior Change: Changed dataclass logic to not enforce ordering of fields with defaults vs those without if init=False is specified.

Enhancement: Extended method override check to include dundered methods (other than constructors).

Bug Fix (from pylance): Removed duplicate "yield" suggestion in completion list.

Enhancement (from pylance): Improved logic that maps type stubs to corresponding source files.

Enhancement: Added support for implicit __annotations__ symbol at the module level.

Enhancement: Updated to the latest typeshed stubs. Removed third-party stubs for that were marked as Python 2 only (enum34, fb303, futures, ipaddress, kazoo, openssl-python, pathlib2, pymssql, Routes, scribe, tornado).

Enhancement: Added support for type(None) within isinstance type narrowing.

Bug Fix: When providing a completion suggestion for an async method override, an "await" operator is now added in the generated return expression.

Bug Fix: Fixed false positive error in argument/parameter matching logic for function calls that occurs when a keyword argument targets a parameter that can be either positional or keyword and a spread operator is used in an earlier argument.

Bug Fix: Fixed bug that resulted in false positive error when a constrained TypeVar type was passed through the "isinstance" type narrowing logic and then used as an operand in a binary operation.

Bug Fix: Fixed several bugs that caused type checker crash in certain cases.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.