Skip to content

Conversation

@A5rocks
Copy link
Collaborator

@A5rocks A5rocks commented Jan 17, 2026

Followup to #20492. This is basically just refactoring based on what seems more correct.

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

):
return LITERAL_YES

NAMES = ("builtins.True", "builtins.False", "builtins.None", "builtins.NotImplemented")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might only be a small optimization but this could be defined globally, maybe even as a frozenset.

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.

2 participants