-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Include all file object operations in IO[AnyStr]? #163
Comments
See also discussion in python/mypy#1472. We could perhaps use something like the constraint-based approach proposed there to enforce that only the correct set of methods are available based on the value of a type variable. So binary-only methods would only be available on (I don't know whether this would be practical to implement, but it might well be.) |
|
From python/mypy#338 -- not sure if this is still a good idea, but I'm moving all stubs-related mypy issues here if I'm not sure I can close them.
The text was updated successfully, but these errors were encountered: