Enable stubtest for aiofiles (#6698)

This commit is contained in:
Sebastian Rittau
2021-12-26 14:54:42 +01:00
committed by GitHub
parent 74cd202b2d
commit d065ee4aef
3 changed files with 9 additions and 6 deletions

View File

@@ -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

View File

@@ -1,3 +1 @@
version = "0.7.*"
requires = []
stubtest = false # easily fixable, some platform differences between local and CI

View File

@@ -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