mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-27 22:31:12 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -14,7 +14,7 @@ error = OSError
|
||||
# any of the three implementations of dbm (dumb, gnu, ndbm), and this
|
||||
# class is intended to represent the common interface supported by all three.
|
||||
class _Database(MutableMapping[_KeyType, bytes]):
|
||||
def __init__(self, filebasename: str, mode: str, flag: str = ...) -> None: ...
|
||||
def __init__(self, filebasename: str, mode: str, flag: str = "c") -> None: ...
|
||||
def sync(self) -> None: ...
|
||||
def iterkeys(self) -> Iterator[bytes]: ... # undocumented
|
||||
def close(self) -> None: ...
|
||||
@@ -29,4 +29,4 @@ class _Database(MutableMapping[_KeyType, bytes]):
|
||||
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
|
||||
) -> None: ...
|
||||
|
||||
def open(file: str, flag: str = ..., mode: int = ...) -> _Database: ...
|
||||
def open(file: str, flag: str = "c", mode: int = 438) -> _Database: ...
|
||||
|
||||
Reference in New Issue
Block a user