Skip to content

Inject[] does not let the interface show up. #158

Open
@mozesa

Description

@mozesa

Hello @alecthomas,

first of all let me to say Thank you! for this outstanding package.

I try to utilize the feature of PEP 593 which actually works fine, but let speak the pictures.
image
image

As you can see, when I use Inject[], the PyCharm doesn't show the interface's methods.

But it works when I use the Annotated[interface: Type[T], ...].
image

Thanks for your help in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions