mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-19 22:50:29 +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:
co-authored by
hauntsaninja <>
parent
af01f1f4be
commit
58147cab20
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user