Skip to content

Published 1.1.71

Compare
Choose a tag to compare
@erictraut erictraut released this 13 Sep 22:16

Behavior Change: Added code to disable the Pyright extension when the Pylance extension is installed. The two extensions are not intended to work together.

Bug Fix: Fixed bug in handling of specialized "tuple" class as defined in PEP 585.

Behavior Change: Changed the behavior of the command-line version of pyright when file specs are passed on the command line. Previously, file specs couldn't be used in conjunction with a config file. Now a config file is used, but the specified file specs override the "include" section of the config file.

Enhancement: Added validation of arguments passed to __init_subclass__ method described in PEP 487.

Enhancement: Added detection of duplicate base classes in a class declaration.

Bug Fix: Fixed bug that generated incorrect "could not create consistent mro" error if one of the base classes was "Generic". The Python interpreter appears to special-case this class.

New Feature: Added support for new "reportWildcardImportFromLibrary" diagnostic rule that checks for the use of wildcard imports from non-local modules. By default, it is reported as a warning, but in strict mode it is an error.

Enhancement: Added code to synthesize custom overloaded "pop", "setdefault", and "delitem" methods for TypedDict classes.

Enhancement: Added support for the direct instantiation of a metaclass rather than using the normal metaclass hook.