We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bcfb0c commit 61884f0Copy full SHA for 61884f0
1 file changed
stdlib/_typeshed/__init__.pyi
@@ -261,9 +261,13 @@ OpenBinaryMode: TypeAlias = OpenBinaryModeUpdating | OpenBinaryModeReading | Ope
261
class HasFileno(Protocol):
262
def fileno(self) -> int: ...
263
264
+class HasFilenoAndHash(HasFileno, Protocol):
265
+ def __hash__(self) -> int: ...
266
+
267
FileDescriptor: TypeAlias = int # stable
268
FileDescriptorLike: TypeAlias = int | HasFileno # stable
269
FileDescriptorOrPath: TypeAlias = int | StrOrBytesPath
270
+HashableFDLike: TypeAlias = int | HasFilenoAndHash
271
272
# stable
273
class SupportsRead(Protocol[_T_co]):
0 commit comments