From d6cdd5ec6d787ec491d73616fb8062e207cb5b33 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Wed, 25 Feb 2026 04:26:47 -0500 Subject: [PATCH] [ibm-db] Add stubs for `ibm_db_ctx` (#15463) --- stubs/ibm-db/ibm_db_ctx.pyi | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 stubs/ibm-db/ibm_db_ctx.pyi diff --git a/stubs/ibm-db/ibm_db_ctx.pyi b/stubs/ibm-db/ibm_db_ctx.pyi new file mode 100644 index 000000000..32620f29c --- /dev/null +++ b/stubs/ibm-db/ibm_db_ctx.pyi @@ -0,0 +1,8 @@ +from types import TracebackType + +import ibm_db + +class Db2connect: + def __init__(self, dsn: str, username: str, password: str) -> None: ... + def __enter__(self) -> ibm_db.IBM_DBConnection: ... + def __exit__(self, t: type[BaseException] | None, v: BaseException | None, tb: TracebackType | None) -> None: ...