mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 20:12:08 +08:00
Use octal for mode defaults (#9670)
This commit is contained in:
@@ -92,4 +92,4 @@ class _error(Exception): ...
|
||||
error: tuple[type[_error], type[OSError]]
|
||||
|
||||
def whichdb(filename: str) -> str: ...
|
||||
def open(file: str, flag: _TFlags = "r", mode: int = 438) -> _Database: ...
|
||||
def open(file: str, flag: _TFlags = "r", mode: int = 0o666) -> _Database: ...
|
||||
|
||||
@@ -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 = "c", mode: int = 438) -> _Database: ...
|
||||
def open(file: str, flag: str = "c", mode: int = 0o666) -> _Database: ...
|
||||
|
||||
@@ -37,4 +37,4 @@ if sys.platform != "win32":
|
||||
# Don't exist at runtime
|
||||
__new__: None # type: ignore[assignment]
|
||||
__init__: None # type: ignore[assignment]
|
||||
def open(__filename: str, __flags: str = "r", __mode: int = 438) -> _gdbm: ...
|
||||
def open(__filename: str, __flags: str = "r", __mode: int = 0o666) -> _gdbm: ...
|
||||
|
||||
@@ -33,4 +33,4 @@ if sys.platform != "win32":
|
||||
# Don't exist at runtime
|
||||
__new__: None # type: ignore[assignment]
|
||||
__init__: None # type: ignore[assignment]
|
||||
def open(__filename: str, __flags: str = "r", __mode: int = 438) -> _dbm: ...
|
||||
def open(__filename: str, __flags: str = "r", __mode: int = 0o666) -> _dbm: ...
|
||||
|
||||
Reference in New Issue
Block a user