8000 gh-111874: Call `__set_name__` on objects that define the method inside a `typing.NamedTuple` class dictionary as part of the creation of that class by AlexWaygood · Pull Request #111876 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-111874: Call __set_name__ on objects that define the method inside a typing.NamedTuple class dictionary as part of the creation of that class #111876

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

Merged
merged 17 commits into from
Nov 27, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "typo"
This reverts commit ed53fcb.
  • Loading branch information
AlexWaygood committed Nov 27, 2023
commit 9fd8b6b5c1c81422a94f52ed285aade4c2de8441
2 changes: 1 addition & 1 deletion Lib/test/test_typing.py
Original file line number Diff line number Diff line change
Expand Up @@ -7577,7 +7577,7 @@ class NamedTupleClass(NamedTuple):
normal_exception.__notes__[0].replace("NormalClass", "NamedTupleClass")
)

def test_no_exception_raised_if_accessing_set_name_causes_strange_error(self):
def test_exception_raised_if_accessing_set_name_causes_strange_error(self):
class Meta(type):
def __getattribute__(self, attr):
if attr == "__set_name__":
Expand Down
0