-
-
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
StrOrBytesPath | FileDescriptor
alias
#9297
Comments
With a new mypy release around the corner, adding helper types before mypy updates its vendored typeshed might be a good idea. |
There don't seem to be any objections :) The only reservation I have is about the name. |
I would be okay with |
"fd" seems fine; it's commonly used as an identifier in the Python docs and e.g. |
I'd still lean towards |
Opening an issue so we don't forget.
Original comment from @AlexWaygood :
There's a handful of
_OpenFile
aliases also defined in multiple stubsThere's also a lot of
int | StrOrBytesPath
,StrOrBytesPath | int
andStrOrBytesPath | FileDescriptor
which could be replaced by the alias.The text was updated successfully, but these errors were encountered: