Avoid unnecessary forward refs in class definitions (#10124)

This commit is contained in:
Alex Waygood authored and GitHub committed 2023-05-01 07:50:50 -07:00
1 parent 277532219f
commit e816acffdd
5 files changed
+98 -99

No files matched your search

+2 -3
View File
@@ -390,14 +390,13 @@ class Cursor(Iterator[Any]):
def __iter__(self) -> Self: ...
def __next__(self) -> Any: ...
class DataError(DatabaseError): ...
class DatabaseError(Error): ...
class Error(Exception):
if sys.version_info >= (3, 11):
sqlite_errorcode: int
sqlite_errorname: str
class DatabaseError(Error): ...
class DataError(DatabaseError): ...
class IntegrityError(DatabaseError): ...
class InterfaceError(Error): ...
class InternalError(DatabaseError): ...