From 8185184d75befdaf1f780d8f1e1dd65d1dc1afa4 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Wed, 21 May 2025 22:13:28 +0200 Subject: relax type of async_copyfd regarding FileDescriptors Fixes: 30a111639ce6 ("expand use of FileDescriptor and add FileDescriptorLike type alias") --- linuxnamespaces/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3