Bug Fix: Fixed a regression that caused a false positive when comparing type compatibility between two Callable types that involve ParamSpecs.
Behavior Change: Changed '-' command-line feature to support multi-line input.
Enhancement: Added special-case support for enum fields that are assigned using an unpacked tuple operation.
Bug Fix: Fixed bug that resulted in false positive error when calling the same generic function with a ParamSpec multiple times as separate arguments within a call expression.
Bug Fix: Fixed another ParamSpec-related issue.
Enhancement: Extended support for TypedDict discrimination by literal field so it supports == and != with values that are unions of literal types.
Bug Fix: Fixed a bug that resulted in incorrect hover results for identifiers used as keys or values within a dictionary expression.
Bug Fix: Fixed recent regression in the synthesized TypedDict get method, which resulted in a false positive error when using strict mode.
Enhancement: Removed limitation that files specified on the command line or in "include" directives end in ".py" or ".pyi".
Bug Fix: Fixed a bug that results in incorrect type evaluation for a higher-order function involving a ParamSpec.
Behavior Change: Modified diagnostic checks for list, dictionary, and tuple literal expressions within annotation expressions so they are emitted as part of the reportGeneralTypeIssue diagnostic rule rather than unconditionally.
Bug Fix: Fixed bug that led to a confusing hover type for the return result of an async generator function.
Enhancement: Added support for deferred annotation evaluation for Annotated type arguments beyond the first one.
Bug Fix: Improved assignment mismatch errors to better handle the case where the two types have the same short name but different fully-qualified names. In this case, the types are now expanded to avoid confusion.
Bug Fix: Fixed incorrect type mismatch error messages within constraint solver logic. The source and destination types were swapped, which led to confusing messages.
Performance: Improved protocol type cache for improved type analysis performance in code bases that make heavy use of protocols.
Enhancement: Added detection of errors when a namedtuple definition includes a language keyword. Also added minimal support for the rename parameter to the namedtuple function.
Enhancement: Updated typeshed stubs to the latest version.
Published 1.1.316
Note: This will be the last version of pyright published for the next couple of weeks. Responses to bug reports and questions may also be delayed over the next few weeks.
Bug Fix: Fixed a bug in the new - command-line feature. This addresses
Bug Fix: Fixed another instance of a false positive reportMissingTypeArgument error when a generic class is passed as the second argument to isinstance.
Enhancement: Added support for bidirectional type inference when using a dictionary expansion and a dictionary literal expression for an argument corresponding to an unpacked TypedDict **kwargs parameter.
Bug Fix: Fixed bug that resulted in incorrect type evaluation when a generic callback protocol was invoked in a nested manner.
Bug Fix: Fixed a bug that resulted in a false positive when passing a class to the defaultdict constructor. If an unspecialized class type is used as a upper or lower constraint within the constraint solver, we now use default type arguments (typically Unknown) rather than leaving these type arguments unspecified.
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.293 to 1.1.317.
Release notes
Sourced from pyright's releases.
... (truncated)
Commits
2eee955
Published 1.1.31774d8f3c
pull-pylance-with-pyright-1.1.316 (#5401)67fe932
Published 1.1.316cef2712
Published 1.1.3150b49479
Published 1.1.31473165c5
Push pylance changes to pyright (#5248)51d2ff8
Switched from ts-loader to esbuild-loader for better build performance. (#5247)3b36b8e
Published 1.1.313ee3c669
Published 1.1.312d20fbcf
Published 1.1.311Dependabot 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)