Skip to content

Support Type[] type with delegate #275

@sobolevn

Description

@sobolevn

Currently, we cannot express something like:

@some.instance(Type[MyClass], delegate=MyDelegate)
def _some_type_myclass(instance: Type[MyClass]) -> int: ...

We can only dispatch on type and that's it.
I think that this feature is useful.

Related #264
Related #274

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    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