Skip to content

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

Open
wants to merge 15 commits into
base: feature-base-3
Choose a base branch
from

Conversation

yashuatla
Copy link
Owner

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:

erictraut and others added 15 commits April 11, 2025 23:10
…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)
…circumstances where bidirectional type inference is attempted in the assignment of an attribute. This addresses microsoft#10345.
…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,
Copy link

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! 🚀

Suggested change
'not ': OperatorType.Not,
not: OperatorType.Not,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants