GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — gh-82129: Improve annotations for make_dataclass() by JelleZijlstra · Pull Request #133406 · python/cpython Conversation
|
| try: | ||
| ann = _get_dunder_annotations(obj) | ||
| except NameError: | ||
| except Exception: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I made a separate PR (with tests) for this change in #133407.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thank you for reviving this PR! It looks like it achieves its main goal.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: sobolevn <[email protected]> Co-authored-by: Carl Meyer <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
get_type_hints fails if there are un-annotated fields in a dataclass
There was an error while loading. Please reload this page.