← 返回首页
Cross-module dataclass inheritance breaks get_type_hints · Issue #89687 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Cross-module dataclass inheritance breaks get_type_hints #89687

New issue
New issue

Description

BPO 45524
Nosy @gvanrossum, @ericvsmith, @JelleZijlstra, @sobolevn, @Fidget-Spinner, @AlexWaygood
PRs
  • gh-89687: fix get_type_hints with dataclasses __init__ generation #29158
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/ericvsmith' closed_at = None created_at = <Date 2021-10-19.14:37:47.448> labels = ['type-bug', 'library', '3.9', '3.10', '3.11'] title = 'Cross-module dataclass inheritance breaks get_type_hints' updated_at = <Date 2022-01-22.08:37:13.515> user = 'https://bugs.python.org/aidanbclark'

    bugs.python.org fields:

    activity = <Date 2022-01-22.08:37:13.515> actor = 'AlexWaygood' assignee = 'eric.smith' closed = False closed_date = None closer = None components = ['Library (Lib)'] creation = <Date 2021-10-19.14:37:47.448> creator = 'aidan.b.clark' dependencies = [] files = [] hgrepos = [] issue_num = 45524 keywords = ['patch'] message_count = 13.0 messages = ['404307', '404312', '404313', '404314', '404321', '404740', '404752', '404754', '404812', '404822', '404823', '404907', '404918'] nosy_count = 8.0 nosy_names = ['gvanrossum', 'eric.smith', 'JelleZijlstra', 'slebedev', 'sobolevn', 'kj', 'AlexWaygood', 'aidan.b.clark'] pr_nums = ['29158'] priority = 'normal' resolution = None stage = 'patch review' status = 'open' superseder = None type = 'behavior' url = 'https://bugs.python.org/issue45524' versions = ['Python 3.9', 'Python 3.10', 'Python 3.11']

    Linked PRs

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytopic-dataclassestopic-typingtype-bugAn unexpected behavior, bug, or error

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    • Open in GitHub Copilot app

    Footer

    © 2026 GitHub, Inc.