Opening an issue so we don't forget.
Original comment from @AlexWaygood :
We could actually consider adding this alias to _typeshed; there's a bunch of functions in os/__init__.pyi that could use it. os/__init__.pyi currently defines an _FdOrAnyPath alias. We don't need to add the alias to _typeshed in this PR, though.
There's a handful of _OpenFile aliases also defined in multiple stubs
There's also a lot of int | StrOrBytesPath, StrOrBytesPath | int and StrOrBytesPath | FileDescriptor which could be replaced by the alias.
Opening an issue so we don't forget.
Original comment from @AlexWaygood :
There's a handful of
_OpenFilealiases also defined in multiple stubsThere's also a lot of
int | StrOrBytesPath,StrOrBytesPath | intandStrOrBytesPath | FileDescriptorwhich could be replaced by the alias.