Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump hdbcli to 2.24.* #13705

Merged
merged 2 commits into from
Mar 24, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions stubs/hdbcli/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# TODO: missing from stub
hdbcli.__all__

# Are set to `None` by default, initialized later:
hdbcli.dbapi.Error.errorcode
hdbcli.dbapi.Error.errortext
Expand Down
2 changes: 1 addition & 1 deletion stubs/hdbcli/METADATA.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version = "2.23.*"
version = "2.24.*"
# upstream_repository = closed-source
2 changes: 2 additions & 0 deletions stubs/hdbcli/hdbcli/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from . import dbapi as dbapi

__version__: str

__all__ = ["dbapi"]
26 changes: 13 additions & 13 deletions stubs/hdbcli/hdbcli/dbapi.pyi
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import decimal
from _typeshed import Incomplete, ReadableBuffer
from collections.abc import Sequence
from collections.abc import Callable, Sequence
from datetime import date, datetime, time
from types import TracebackType
from typing import Any, Literal, overload
from typing import Any, Final, Literal, overload
from typing_extensions import Self, TypeAlias

from .resultrow import ResultRow

apilevel: str
threadsafety: int
paramstyle: tuple[str, ...] # hdbcli defines it as a tuple which does not follow PEP 249
apilevel: Final[str]
threadsafety: Final[int]
paramstyle: Final[tuple[str, ...]] # hdbcli defines it as a tuple which does not follow PEP 249

class Connection:
def __init__(
self,
address: str,
port: int,
user: str,
password: str,
autocommit: bool = ...,
packetsize: int | None = ...,
address: str = "",
port: int = 0,
user: str = "",
password: str = "",
autocommit: bool = True,
packetsize: int | None = None,
userkey: str | None = ...,
*,
sessionvariables: dict[str, str] | None = ...,
Expand All @@ -38,7 +38,7 @@ class Connection:
def rollback(self) -> None: ...
def setautocommit(self, auto: bool = ...) -> None: ...
def setclientinfo(self, key: str, value: str | None = ...) -> None: ...
def ontrace(self) -> None: ...
def ontrace(self, callback: Callable[[str], Any], options: str | None) -> None: ...

connect = Connection

Expand Down Expand Up @@ -66,7 +66,7 @@ class Cursor:
def close(self) -> None: ...
def description_ext(self) -> Sequence[tuple[Any, ...]]: ...
def execute(self, operation: str, parameters: tuple[Any, ...] | None = ...) -> bool: ...
def executemany(self, operation: str, parameters: _Parameters = ...) -> Any: ...
def executemany(self, operation: str, parameters: _Parameters = ..., batcherrors: bool | None = ...) -> Any: ...
def executemanyprepared(self, parameters: _Parameters = ...) -> Any: ...
def executeprepared(self, parameters: _Parameters = ...) -> Any: ...
def fetchone(self, uselob: bool = ...) -> ResultRow | None: ...
Expand Down