Skip to content

PEP 695 type aliases are not currently not fully supported #134

Description

@maldoinc

Registering a type as Bar but then requesting it from the container with the new type alias (type Foo = Bar) does not currently work. TypeAliasType objects created via the new type syntax are distinct runtime objects from the types they alias, so container lookups will fail.

This is a known limitation. There are several related cases (typing.Sequence vs collections.abc.Sequence etc.) that should be handled consistently.

Not accepting contributions for this at the moment while the overall approach is still undecided.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions