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: ...