You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not supported yet, but I think that PEP 484 allows it.
There is another possible interpretation of the alias that was discussed before (I can't find the issue), in which X = Dict[str, T] would make X[int] mean Dict[str, int], for example.
Yes, PEP 484 explicitly allows this. I think the other issue you're thinking of is in typehinting: python/typing#115. Also that mentions #606 here, which this is probably a duplicate of.
Not sure if this is
Question
orIssue
. Is theIterFunc
alias below allowed? There is no other way to alias a complex generic types.Mypy rejects it with:
Thanks.
The text was updated successfully, but these errors were encountered: