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.
Registering a type as
Barbut 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.