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
Quite often in typeshed we have the case that a generic class can be narrowed by the arguments provided to __init__. One example are file classes that are generic over AnyStr, where a mode argument narrows the type. It would be useful if this could be described somehow in typing, possibly by extending the @overload decorator or with some other mechanism.