Bug Fixes:
- Fixed bug that results in incorrect logging of the pythonVersion string.
- (from Pylance) Fixed issue that resulted in the incorrect pythonVersion when a pyproject.toml is present with a "[tool.pyright]" section.
- Fixed a bug that results in false negatives for errors in argument expressions used in a call to
functools.partial
in some cases. This same issue also causes symbols accessed in these arg expressions to not be marked as referenced. - Fixed bug that results in a crash in very specific circumstances that involve binding a method parameterized by a function-scoped ParamSpec.
- Fixed a bug that resulted in incorrect evaluation when converting a constructor to a callable and the constructed class has a metaclass with a
__call__
method whosecls
parameter is annotated withtype[T]
. - Fixed bug that results in a
reportIncompatibleMethodOverride
diagnostic being reported in the wrong location in some cases involving decorators. - Fixed a bug that results in a false negative when overloads overlap due to default values.
Behavior Changes:
- Changed the default value of the
disableBytesTypePromotions
setting fromfalse
totrue
. It has been over two years since PEP 688 was accepted, so it's time for us to stop treatingbytes
as an alias forbytes | bytearray | memoryview
. This is a breaking change and may require an update to the pyright configuration for some code bases.