diff options
author | Helmut Grohne <helmut@subdivi.de> | 2025-05-21 22:12:41 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2025-05-21 22:12:41 +0200 |
commit | c385146d460719c4258c8adfcf8b6c9737a94157 (patch) | |
tree | 7f56f2f9128679c8a98da6e6fe98b2f813ff90a9 /linuxnamespaces/filedescriptor.py | |
parent | ba7f822b1283d50432ec448563212d860c079c45 (diff) | |
download | python-linuxnamespaces-c385146d460719c4258c8adfcf8b6c9737a94157.tar.gz |
fix return type of FileDescriptor.fileno
Fixes: 30a111639ce6 ("expand use of FileDescriptor and add FileDescriptorLike type alias")
Diffstat (limited to 'linuxnamespaces/filedescriptor.py')
-rw-r--r-- | linuxnamespaces/filedescriptor.py | 2 |
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 |