npm pyright 1.1.144
Published 1.1.144

latest releases: 1.1.363, 1.1.362, 1.1.361...
2 years ago

Bug Fix: Changed CLI to not use process.exit() but instead return normally. The previous code sometimes resulted in truncated output.

Enhancement: Added error for keyword-only parameter separator or position-only parameter separator appearing in a function signature after an "*args" parameter. This will result in a runtime error.

Enhancement: Improved error message for missing **kwargs parameter when assigning one function to another.

Bug Fix: Fixed bug in logic that converts a type into a text representation. It wasn't properly adding the scope for a ParamSpec in certain circumstances, so instead of outputting P@scope, it was outputting P.

Bug Fix: Fixed bug in specialization of generic class that contains only one type variable that is a ParamSpec.

Bug Fix: Fixed bugs that prevented ParamSpec annotations P.args and P.kwargs from working properly when the annotation was in quotes.

Bug Fix: Fixed false positive error in check for inappropriate use of contravariant type var in return type annotation. It should not generate an error when the contravariant type var is part of a union.

Enhancement: Improved error message consistency for "cannot assign to None" condition.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.