summaryrefslogtreecommitdiff
path: root/linuxnamespaces/__init__.py
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2025-05-21 22:13:28 +0200
committerHelmut Grohne <helmut@subdivi.de>2025-05-21 22:13:28 +0200
commit8185184d75befdaf1f780d8f1e1dd65d1dc1afa4 (patch)
treee9ab8cfa19e64a7177d1986707845143d2749244 /linuxnamespaces/__init__.py
parentc385146d460719c4258c8adfcf8b6c9737a94157 (diff)
downloadpython-linuxnamespaces-8185184d75befdaf1f780d8f1e1dd65d1dc1afa4.tar.gz
relax type of async_copyfd regarding FileDescriptors
Fixes: 30a111639ce6 ("expand use of FileDescriptor and add FileDescriptorLike type alias")
Diffstat (limited to 'linuxnamespaces/__init__.py')
-rw-r--r--linuxnamespaces/__init__.py4
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