mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Enable stubtest for aiofiles (#6698)
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
# Some arguments only exist on FreeBSD and MacOS
|
||||
aiofiles.os.sendfile
|
||||
|
||||
# These all delegate using *args,**kwargs, but stubs use signature of
|
||||
# method they are being delegated to.
|
||||
aiofiles.threadpool.binary.AsyncBufferedIOBase.close
|
||||
aiofiles.threadpool.binary.AsyncBufferedIOBase.detach
|
||||
aiofiles.threadpool.binary.AsyncBufferedIOBase.fileno
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
version = "0.7.*"
|
||||
requires = []
|
||||
stubtest = false # easily fixable, some platform differences between local and CI
|
||||
|
||||
@@ -15,14 +15,14 @@ async def rmdir(path: StrOrBytesPath, *, dir_fd: int | None = ...) -> None: ...
|
||||
|
||||
if sys.platform != "win32":
|
||||
@overload
|
||||
async def sendfile(__out_fd: int, __in_fd: int, offset: int | None, count: int) -> int: ...
|
||||
async def sendfile(out_fd: int, in_fd: int, offset: int | None, count: int) -> int: ...
|
||||
@overload
|
||||
async def sendfile(
|
||||
__out_fd: int,
|
||||
__in_fd: int,
|
||||
out_fd: int,
|
||||
in_fd: int,
|
||||
offset: int,
|
||||
count: int,
|
||||
headers: Sequence[bytes] = ...,
|
||||
trailers: Sequence[bytes] = ...,
|
||||
flags: int = ...,
|
||||
) -> int: ...
|
||||
) -> int: ... # FreeBSD and Mac OS X only
|
||||
|
||||
Reference in New Issue
Block a user