mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
psycopg2: use Error and Warning from _psycopg.pyi in errors.pyi (#6454)
This commit is contained in:
@@ -1,17 +1,4 @@
|
||||
from typing import Any
|
||||
|
||||
class Error:
|
||||
def __init__(self, *args, **kwargs): ...
|
||||
args: Any
|
||||
cursor: Any
|
||||
diag: Any
|
||||
pgcode: Any
|
||||
pgerror: Any
|
||||
with_traceback: Any
|
||||
|
||||
class Warning:
|
||||
args: Any
|
||||
with_traceback: Any
|
||||
from psycopg2._psycopg import Error as Error, Warning as Warning
|
||||
|
||||
class DatabaseError(Error): ...
|
||||
class InterfaceError(Error): ...
|
||||
|
||||
Reference in New Issue
Block a user