Enhancement: Added support for # pyright: ignore and # type: ignore comments that are not at the start of a comment.
Enhancement: Improved parse recovery for common indent/dedent conditions.
Bug Fix: Fixed recent regression that resulted in a false positive when a type[T] was assigned to a Callable[..., T].
Bug Fix: Fixed a regression related to a recent change in typeshed that caused imports from google.cloud namespace packages to fail.
Bug Fix: Fixed a bug that resulted in incorrect type evaluation when assigning an unpacked TypeVarTuple to a regular (non-variadic) TypeVar during constraint solving. This should result in a union of the TypeVarTuple types.
Bug Fix: Fixed a bug that resulted in a false positive diagnostic when importing a symbol from a "py.typed" library that was imported (and re-exported) from a non-"py.typed" library.
Bug Fix: Changed ParamSpec capture logic to track the expression used for a default argument value.
Bug Fix: Fixed a recent regression that led to a false negative when evaluating the type of an unannotated variable in a loop.
Enhancement: Added support for frozen_default for dataclass_transform.
Bug Fix: Fixed recent regression that caused a false positive reportShadowedStdlibModules for relative imports and imports starting with _.
Enhancement: Show doc strings on hover over module names within import statements.
Enhancement: Updated typeshed stubs to the latest version.
Enhancement: Added small perf optimization for determining type compatibility between two unions, especially in cases where the number of items in the union is large.
Bug Fix: Added logic to limit recursion when handling type compatibility checks between two different recursive type aliases that have the same definition.
Bug Fix: Fixed bug that resulted in a false positive when passing an unpacked dict or unpacked iterable argument to the constructor of a class that has no __init__ and therefore uses object.__init__.
Bug Fix: Fixed bug that led to a false positive error when using an unpacked argument that has a declared type that is a tuple with an unpacked TypeVarTuple.
Bug Fix: Fixed bug that resulted in a false positive reportPrivateImportUsage diagnostic when importing from a py.typed library under certain circumstances.
Published 1.1.282
Bug Fix: Fixed bug that resulted in false positive error when a recursive type alias involving a union was used in certain circumstances.
Bug Fix: Fixed bug that resulted in incorrect type evaluation when assigning a tuple with an unpacked TypeVarTuple to a tuple with a normal TypeVar.
Bug Fix: Fixed a bug that resulted in a false negative (a missing error) when assigning a union that contains a TypeVar to another union with the same TypeVar.
Bug Fix: Fixed bug that resulted in incorrect type inference for an instance variable that is assigned different types in different places.
Bug Fix: Fixed bug in tokenizer that resulted in false positive error when a floating point literal started with one or more leading zeros.
Bug Fix: Added logic to deal with conflicting namespace packages when one has no __init__.py(i) file and the other does.
Enhancement: Updated typeshed stubs to the latest version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps pyright from 1.1.271 to 1.1.283.
Release notes
Sourced from pyright's releases.
... (truncated)
Commits
5c8f84f
Published 1.1.283a3fc8b8
Published 1.1.2820ef6371
Published 1.1.2814bc49e5
Push pylance changes to pyright (#4209)e9d29ce
Bump loader-utils from 2.0.3 to 2.0.4 in /packages/pyright (#4194)8a5997a
Published 1.1.280db1c158
Bump loader-utils from 2.0.2 to 2.0.3 in /packages/pyright (#4167)4db3f23
Published 1.1.2790fdcb59
Published 1.1.278a58485a
Published 1.1.277Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)