Skip to content

Shouldn't typing.get_type_hints() default globalns to {} instead of skipping base classes? #88634

Description

@will-ca
mannequin
BPO 44468
Nosy @gvanrossum, @ilevkivskyi, @JelleZijlstra, @miss-islington, @Fidget-Spinner, @will-ca
PRs
  • bpo-44468: Never skip base classes in typing.get_type_hints(), even with invalid .__module__. #26862
  • [3.10] bpo-44468: Never skip base classes in typing.get_type_hints(), even with invalid .__module__. (GH-26862) #26920
  • 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 = None
    closed_at = <Date 2021-06-27.02:32:00.150>
    created_at = <Date 2021-06-21.04:11:39.691>
    labels = ['type-bug', '3.10', '3.11']
    title = "Shouldn't `typing.get_type_hints()` default `globalns` to `{}` instead of skipping base classes?"
    updated_at = <Date 2021-06-27.02:32:00.150>
    user = 'https://github.com/will-ca'

    bugs.python.org fields:

    activity = <Date 2021-06-27.02:32:00.150>
    actor = 'gvanrossum'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-06-27.02:32:00.150>
    closer = 'gvanrossum'
    components = []
    creation = <Date 2021-06-21.04:11:39.691>
    creator = 'WCA'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44468
    keywords = ['patch']
    message_count = 7.0
    messages = ['396205', '396222', '396279', '396315', '396376', '396559', '396561']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'levkivskyi', 'JelleZijlstra', 'miss-islington', 'kj', 'WCA']
    pr_nums = ['26862', '26920']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue44468'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixestype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions