diff options
author | Helmut Grohne <helmut@subdivi.de> | 2025-05-21 22:13:28 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2025-05-21 22:13:28 +0200 |
commit | 8185184d75befdaf1f780d8f1e1dd65d1dc1afa4 (patch) | |
tree | e9ab8cfa19e64a7177d1986707845143d2749244 | |
parent | c385146d460719c4258c8adfcf8b6c9737a94157 (diff) | |
download | python-linuxnamespaces-8185184d75befdaf1f780d8f1e1dd65d1dc1afa4.tar.gz |
relax type of async_copyfd regarding FileDescriptors
Fixes: 30a111639ce6 ("expand use of FileDescriptor and add FileDescriptorLike type alias")
-rw-r--r-- | linuxnamespaces/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linuxnamespaces/__init__.py b/linuxnamespaces/__init__.py index ce37150..9332a06 100644 --- a/linuxnamespaces/__init__.py +++ b/linuxnamespaces/__init__.py @@ -801,7 +801,9 @@ class _AsyncCopier: def async_copyfd( - from_fd: FileDescriptor, to_fd: FileDescriptor, count: int | None = None + from_fd: FileDescriptorLike, + to_fd: FileDescriptorLike, + count: int | None = None, ) -> asyncio.Future[int]: """Copy the given number of bytes from the first file descriptor to the second file descriptor in an asyncio context. Both copies are performed |