Skip to content

TypeAliasType objects have no __qualname__ #139817

Description

@AA-Turner

Bug report

Bug description:

This means that introspection is worse for type statements declared e.g. within class bodies.

A

cc @JelleZijlstra

CPython versions tested on:

3.12, 3.13, 3.14, 3.15, CPython main branch

Operating systems tested on:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)topic-typingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions