mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
stdlib: Add defaults for positional-only parameters (#9655)
This commit is contained in:
@@ -386,7 +386,7 @@ class Cursor(Iterator[Any]):
|
||||
# putting None in the return annotation causes annoying false positives.
|
||||
def fetchone(self) -> Any: ...
|
||||
def setinputsizes(self, __sizes: Unused) -> None: ... # does nothing
|
||||
def setoutputsize(self, __size: Unused, __column: Unused = ...) -> None: ... # does nothing
|
||||
def setoutputsize(self, __size: Unused, __column: Unused = None) -> None: ... # does nothing
|
||||
def __iter__(self: Self) -> Self: ...
|
||||
def __next__(self) -> Any: ...
|
||||
|
||||
@@ -446,11 +446,11 @@ if sys.version_info >= (3, 11):
|
||||
@final
|
||||
class Blob:
|
||||
def close(self) -> None: ...
|
||||
def read(self, __length: int = ...) -> bytes: ...
|
||||
def read(self, __length: int = -1) -> bytes: ...
|
||||
def write(self, __data: ReadableBuffer) -> None: ...
|
||||
def tell(self) -> int: ...
|
||||
# whence must be one of os.SEEK_SET, os.SEEK_CUR, os.SEEK_END
|
||||
def seek(self, __offset: int, __origin: int = ...) -> None: ...
|
||||
def seek(self, __offset: int, __origin: int = 0) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, __typ: object, __val: object, __tb: object) -> Literal[False]: ...
|
||||
|
||||
Reference in New Issue
Block a user