github microsoft/pyright 1.1.396
Published 1.1.396

11 hours ago

This is a hot fix release that addresses a regression introduced in 1.1.395 that affected several popular libraries including pandas.

Bug Fixes:

  • Reverted previous bug fix that caused errors to be detected and reported in cases where a library defines a function or method with one or more typed parameters with default arguments whose types are incompatible with the parameter type. Previously, pyright reported these errors in some cases but not in others. The bug fix caused these errors to be consistently reported. However, an unexpected number of libraries are impacted by this change. This reversion will give us time to better understand the extend of the issue and determine the correct long-term solution.

Enhancements:

  • Added bidirectional type inference for container types that are parameterized by a protocol that matches a module.

Don't miss a new pyright release

NewReleases is sending notifications on new releases.