-
Notifications
You must be signed in to change notification settings - Fork 0
Feature implementation from commits e77fca4..f2adab3 #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature-base-3
Are you sure you want to change the base?
Conversation
…s an internal simplification. No functional change.
…lass-scoped type alias defined as a callable. This addresses microsoft#10282. (microsoft#10308)
…cases where a ternary expression is assigned to an annotated instance or class variable and the ternary condition narrows the type of `self` or `cls`. This addresses microsoft#10318. (microsoft#10321)
… check to enforce imports from submodules whose names begin with an underscore. This change was disruptive to users of the popular `pandas` library because it exports a submodule named `_typing`. This was originally intended to be experimental or private, but it was never fully addressed. The pandas maintainers will work to fix this issue (pandas-dev/pandas#55231) over the next year. I'm going to back out this change to pyright in the meantime. (microsoft#10322)
… in Python 3.14 if a `return`, `break` or `continue` is used to exit a `finally` clause. This addresses microsoft#10319. (microsoft#10323)
… when using a class-scoped type alias defined using a `type` statement or `TypeAliasType` constructor. This addresses microsoft#10330. (microsoft#10332)
… refers to itself. This addresses microsoft#10287. (microsoft#10334)
…circumstances where bidirectional type inference is attempted in the assignment of an attribute. This addresses microsoft#10345.
…. These result in a runtime exception. This addresses microsoft#10351. (microsoft#10353)
…ction with an unpacked TypedDict with `extra_items` when additional keyword args are passed. This addresses microsoft#10352. (microsoft#10357)
Co-authored-by: Bill Schnurr <[email protected]> Co-authored-by: HeeJae Chang <[email protected]> Co-authored-by: Erik De Bonte <[email protected]> Co-authored-by: Rich Chiodo <[email protected]> Co-authored-by: Stella Huang <[email protected]> Co-authored-by: Kacie Kang <[email protected]>
'-=': OperatorType.SubtractEqual, | ||
and: OperatorType.And, | ||
or: OperatorType.Or, | ||
'not ': OperatorType.Not, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐛 Correctness Issue
Trailing space in operator key.
The 'not ' operator key has a trailing space which will cause lookup failures when code tries to map the string 'not' to its operator type.
Current Code (Diff):
- 'not ': OperatorType.Not,
+ not: OperatorType.Not,
📝 Committable suggestion
‼️ IMPORTANT
Trust, but verify! 🕵️ Please review this suggestion with the care of a code archaeologist - check that it perfectly replaces the highlighted code, preserves all lines, maintains proper indentation, and won't break anything in production. Your future self will thank you! 🚀
'not ': OperatorType.Not, | |
not: OperatorType.Not, |
This PR contains changes from a range of commits from the original repository.
Commit Range:
e77fca4..f2adab3
Files Changed: 69 (46 programming files)
Programming Ratio: 66.7%
Commits included:
azure-pipelines-release.yml
(Temporarily disable npm publishing inazure-pipelines-release.yml
microsoft/pyright#10360)extra_items
when additional keyword args are passed. This addresses Pep 728 support for TypedDict with Unpack does not allow extra items microsoft/pyright#10352. (Fixed a bug that results in a false positive error when calling a fun… microsoft/pyright#10357)Callable
type microsoft/pyright#10287. (Fixed a bug that leads to a hang when a generic type alias definition… microsoft/pyright#10334)type
statement orTypeAliasType
constructor. This addresses Nested type aliases in classes specialize prematurely microsoft/pyright#10330. (Fixed bug that results in a spurious "type already specialized" error… microsoft/pyright#10332)... and 5 more commits