◐ Shell
clean mode source ↗

gh-82129: Improve annotations for make_dataclass() by JelleZijlstra · Pull Request #133406 · python/cpython

Conversation

…wt3u.rst

Co-authored-by: Carl Meyer <carl@oddbird.net>

JelleZijlstra

try:
ann = _get_dunder_annotations(obj)
except NameError:
except Exception:

Choose a reason for 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.

sobolevn

Choose a reason for 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.

sobolevn

Choose a reason for hiding this comment

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

LGTM

Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request

Jul 12, 2025
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Carl Meyer <carl@oddbird.net>

2 participants

@JelleZijlstra @sobolevn