mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
sqlite3.Blob: fix stubtest errors (#7858)
This commit is contained in:
@@ -451,13 +451,14 @@ else:
|
||||
class Warning(Exception): ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
@final
|
||||
class Blob:
|
||||
def close(self) -> None: ...
|
||||
def read(self, __length: int = ...) -> bytes: ...
|
||||
def write(self, __data: bytes) -> None: ...
|
||||
def tell(self) -> int: ...
|
||||
# whence must be one of os.SEEK_SET, os.SEEK_CUR, os.SEEK_END
|
||||
def seek(self, __offset: int, __whence: int = ...) -> None: ...
|
||||
def seek(self, __offset: int, __origin: int = ...) -> None: ...
|
||||
def __len__(self) -> int: ...
|
||||
def __enter__(self: Self) -> Self: ...
|
||||
def __exit__(self, __typ: object, __val: object, __tb: object) -> Literal[False]: ...
|
||||
|
||||
@@ -130,10 +130,6 @@ re.TEMPLATE
|
||||
re.template
|
||||
shutil.rmtree
|
||||
socketserver.UDPServer.allow_reuse_port
|
||||
sqlite3.Blob
|
||||
sqlite3.Blob.seek
|
||||
sqlite3.dbapi2.Blob
|
||||
sqlite3.dbapi2.Blob.seek
|
||||
sre_compile.CALL
|
||||
sre_compile.SRE_FLAG_TEMPLATE
|
||||
sre_constants.CALL
|
||||
|
||||
Reference in New Issue
Block a user