Skip to content

Published 1.1.49

Compare
Choose a tag to compare
@erictraut erictraut released this 04 Jul 15:19

Bug Fix: Fixed bug that caused incorrect type to be determined for *args and **kwargs parameters in some contexts.

Enhancement: Updated typeshed stubs to the latest versions from the typeshed repo.

Bug Fix: Fixed bug in tokenizer where it was generating an error if escaped unicode characters (using the \N{name} escape) contained a space in the name.

Enhancement: Improved parse recovery for statements that are supposed to end in a colon followed by a suite of other indented statements. Previously, a missing colon or expression error resulted in a cascade of additional errors.

Enhancement: Improved error message for overloaded calls where no overload matches the provided arguments.

Bug Fix: Fixed bug in unreachable code detection and reporting. The logic was previously split between the binder (which used proper code flow analysis) and the checker (which didn't use code flow analysis but had access to NoReturn call information). The new code combines everything into the checker and uses both code flow analysis and NoReturn call info.

Bug Fix: Added code to include a symbol in a module if the source file is an "init.py(i)" and a relative import of the form "from .x.y.z import X" is used. In this case, the symbol "x" should appear within the module's namespace.

Bug Fix: Fixed bug in pyrightconfig schema. The defaults for several settings were using strings "true" and "false" rather than booleans true and false.

Bug Fix: Fixed bug in parser that generated a spurious error when an unparenthesized assignment expression (walrus operator) was used as an argument. PEP 572 indicates that this should be allowed in cases where the argument is not named.

Enhancement: Changed constructor type analysis logic to always specialize the instantiated instance.

Bug Fix: Fixed bug in reportAssertAlwaysTrue diagnostic. It wasn't properly handling tuples of indeterminate length.

Bug Fix: Fixed bug in import resolution that resulted in an unresolved import when a local folder was present with the same name as the imported third-party library.

Bug Fix: Fixed bug that caused diagnostics for unopened files to remain in "problems" panel after switching diagnostic mode from "workspace" to "open files only".

Bug Fix: Fixed bug in parsing of f-string expressions that contain nested braces.

Bug Fix: Fixed bug in import resolver where it was not preferring regular package imports over namespace packages.