From dc77acae76124b16bfb6a80ae08ff22b76c017a2 Mon Sep 17 00:00:00 2001 From: Brian Schubert Date: Tue, 24 Feb 2026 21:12:47 -0500 Subject: [PATCH] [ibm-db] Add stubs for `ibm_db_ctx` --- 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 000000000000..32620f29cf4f --- /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: ...