diff --git a/stdlib/3/fcntl.pyi b/stdlib/3/fcntl.pyi index a50fa0d87e5c..1ff20d60d7c6 100644 --- a/stdlib/3/fcntl.pyi +++ b/stdlib/3/fcntl.pyi @@ -1,6 +1,6 @@ # Stubs for fcntl +from io import IOBase from typing import Any, IO, Union -import typing FASYNC = ... # type: int FD_CLOEXEC = ... # type: int @@ -75,7 +75,7 @@ LOCK_SH = ... # type: int LOCK_UN = ... # type: int LOCK_WRITE = ... # type: int -_AnyFile = Union[int, IO[Any]] +_AnyFile = Union[int, IO[Any], IOBase] # TODO All these return either int or bytes depending on the value of # cmd (not on the type of arg).