mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Add sqlite_errorcode and sqlite_errorname to sqlite3.Error in Python 3.11 (#6425)
This commit is contained in:
@@ -207,7 +207,12 @@ class Cursor(Iterator[Any]):
|
||||
|
||||
class DataError(DatabaseError): ...
|
||||
class DatabaseError(Error): ...
|
||||
class Error(Exception): ...
|
||||
|
||||
class Error(Exception):
|
||||
if sys.version_info >= (3, 11):
|
||||
sqlite_errorcode: int
|
||||
sqlite_errorname: str
|
||||
|
||||
class IntegrityError(DatabaseError): ...
|
||||
class InterfaceError(Error): ...
|
||||
class InternalError(DatabaseError): ...
|
||||
|
||||
Reference in New Issue
Block a user