-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implicit Any in immutabledict
throws error on vistautils#86
#72
Comments
immutabledict
throws error on [vistautils#86](https://github.com/isi-vista/vistautils/issues/86)immutabledict
throws error on vistautils#86
Found the issue. Aliasing generic typings makes the alias itself generic and thus it uses implicit |
@jamart28 : Can you provide me with more context of that the aliases are and where they are being used? |
immutablecollections/immutablecollections/_immutabledict.py Lines 20 to 37 in df73582
Excuse if my wording of alias wasn't exactly right. That's all I could think to call it. |
@jamart28 : ah, okay, so is the problem the type alias |
@jamart28 : python/mypy#606 implies type aliases with generics should work. Can you check what release of |
@gabbard: That issue (and subsequent PR that allowed the generics) are from 2016 whereas the version we are using is from 2018. As such I think it's safe to say that the change is in the version we use. I believe that the issue comes in that we are importing it but am unsure how to workaround that (given that my solution I thought I had found causes issues in immutablecollections) |
I should also clarify that the issue in the above code is that |
@gabbard @lichmaster98 Looking through I believe our best course of action that will make the change the least noticeable in use of the library by others will be to take the implicit
|
@jamart28 From my understanding of the original issue using an explicit Any should be ok as we are trying to eliminate implicit ones. That would be my recommendation. |
Implicit Any in
immutabledict
throws error on vistautils#86Tracing problem through imports to find issue
The text was updated successfully, but these errors were encountered: