-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e3b703d
gh-111874: Call `__set_name__` on objects that define the method insi…
AlexWaygood f053310
fixup news
AlexWaygood 7ccff63
Also add a test for TypedDict classes
AlexWaygood 0d13e83
Merge branch 'namedtuple-setname' of https://github.com/AlexWaygood/c…
AlexWaygood e4e968a
Revert "Also add a test for TypedDict classes"
AlexWaygood e0c88f0
Exception -> BaseException
AlexWaygood d8102fd
Address review (and fix bug)
AlexWaygood f2a57b2
Update Lib/test/test_typing.py
AlexWaygood 1909fd5
Handle strange exceptions raised on attempting to access `__set_name__`
AlexWaygood ed53fcb
typo
AlexWaygood c2c65c6
big comment
AlexWaygood e79ea37
Revert "big comment"
AlexWaygood 9fd8b6b
Revert "typo"
AlexWaygood fdab495
Revert "Handle strange exceptions raised on attempting to access `__s…
AlexWaygood 3932d48
Add a test that asserts the correct behaviour
AlexWaygood 3359ff6
Address Serhiy's second review pass
AlexWaygood ef628da
Merge branch 'main' into namedtuple-setname
AlexWaygood File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Revert "typo"
This reverts commit ed53fcb.
- Loading branch information
commit 9fd8b6b5c1c81422a94f52ed285aade4c2de8441
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.