mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
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:
@@ -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: ...
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user