summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2025-05-21 22:12:41 +0200
committerHelmut Grohne <helmut@subdivi.de>2025-05-21 22:12:41 +0200
commitc385146d460719c4258c8adfcf8b6c9737a94157 (patch)
tree7f56f2f9128679c8a98da6e6fe98b2f813ff90a9
parentba7f822b1283d50432ec448563212d860c079c45 (diff)
downloadpython-linuxnamespaces-c385146d460719c4258c8adfcf8b6c9737a94157.tar.gz
fix return type of FileDescriptor.fileno
Fixes: 30a111639ce6 ("expand use of FileDescriptor and add FileDescriptorLike type alias")
-rw-r--r--linuxnamespaces/filedescriptor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxnamespaces/filedescriptor.py b/linuxnamespaces/filedescriptor.py
index d11d4d6..ea699c2 100644
--- a/linuxnamespaces/filedescriptor.py
+++ b/linuxnamespaces/filedescriptor.py
@@ -65,7 +65,7 @@ class FileDescriptor(int):
"""Convenience wrapper for os.pidfd_open."""
return cls(os.pidfd_open(pid, flags))
- def fileno(self) -> FileDescriptor:
+ def fileno(self) -> "FileDescriptor":
"""Return self such that it satisfies the HasFileno protocol."""
return self