Skip to content

Commit d6cdd5e

Browse files
[ibm-db] Add stubs for ibm_db_ctx (#15463)
1 parent fdbb8d5 commit d6cdd5e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

stubs/ibm-db/ibm_db_ctx.pyi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from types import TracebackType
2+
3+
import ibm_db
4+
5+
class Db2connect:
6+
def __init__(self, dsn: str, username: str, password: str) -> None: ...
7+
def __enter__(self) -> ibm_db.IBM_DBConnection: ...
8+
def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...

0 commit comments

Comments
 (0)