aifc: fix mode default (#4019)

By default, if not specified, these functions use the mode from the file

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-16 16:47:14 -07:00
committed by GitHub
parent af01f1f4be
commit 58147cab20
2 changed files with 4 additions and 6 deletions

View File

@@ -71,15 +71,15 @@ class Aifc_write:
def close(self) -> None: ...
@overload
def open(f: _File, mode: Literal["r", "rb"] = ...) -> Aifc_read: ...
def open(f: _File, mode: Literal["r", "rb"]) -> Aifc_read: ...
@overload
def open(f: _File, mode: Literal["w", "wb"]) -> Aifc_write: ...
@overload
def open(f: _File, mode: str) -> Any: ...
def open(f: _File, mode: Optional[str] = ...) -> Any: ...
@overload
def openfp(f: _File, mode: Literal["r", "rb"] = ...) -> Aifc_read: ...
def openfp(f: _File, mode: Literal["r", "rb"]) -> Aifc_read: ...
@overload
def openfp(f: _File, mode: Literal["w", "wb"]) -> Aifc_write: ...
@overload
def openfp(f: _File, mode: str) -> Any: ...
def openfp(f: _File, mode: Optional[str] = ...) -> Any: ...

View File

@@ -11,8 +11,6 @@ _weakref.ReferenceType.__call__
abc.abstractclassmethod
abc.abstractmethod
abc.abstractstaticmethod
aifc.open
aifc.openfp
argparse.Namespace.__getattr__
asyncio.BaseEventLoop.subprocess_exec
asyncio.Condition.acquire