sqlite3.Blob: fix stubtest errors (#7858)

This commit is contained in:
Jelle Zijlstra
2022-05-17 19:50:19 -07:00
committed by GitHub
parent 8f5a83516b
commit a01f98c361
2 changed files with 2 additions and 5 deletions

View File

@@ -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]: ...

View File

@@ -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