mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-01 07:23:47 +08:00
psycopg2: use Error and Warning from _psycopg.pyi in errors.pyi (#6454)
This commit is contained in:
1 parent
1f62ff62e7
commit
e96dde7618
1 file changed
+1
-14
@@ -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