-
Notifications
You must be signed in to change notification settings - Fork 87
Inject[] does not let the interface show up. #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey @mozesa. I'll answer in @alecthomas's stead as I maintain this project right now – I think you need to take this up with the PyCharm folks, I don't use it and I'm afraid I can't help much here, everything seems good on our side. |
Hello @jstasiak, Thanks for your reply. I keep open this issue and later will update. |
Sure thing! |
issue created. |
Yes, the JetBrains folks unfortunately lag very much behind updating their type checker. I could go on another rant, but I'll be civil and leave it at that. The problem is that the |
Hi, I'm still having this issue with Pycharm (mypy works fine) with the Annotation Alias @jstasiak as it seems Pycharm will not fix this issue soon, would you consider making |
I think that is a reasonable request, allowing a workaround for those that think it's worth it. We should make the |
This is probably as close as a fix for #158 as we'll get on this end.
I have opened a PR for this in #269. |
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.As you can see, when I use
Inject[]
, thePyCharm
doesn't show the interface's methods.But it works when I use the

Annotated[interface: Type[T], ...]
.Thanks for your help in advance!
The text was updated successfully, but these errors were encountered: