Skip to content

Commit 22de777

Browse files
authored
Bump hdbcli to 2.24.* (#13705)
1 parent 798c660 commit 22de777

4 files changed

Lines changed: 16 additions & 17 deletions

File tree

stubs/hdbcli/@tests/stubtest_allowlist.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# TODO: missing from stub
2-
hdbcli.__all__
3-
41
# Are set to `None` by default, initialized later:
52
hdbcli.dbapi.Error.errorcode
63
hdbcli.dbapi.Error.errortext

stubs/hdbcli/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "2.23.*"
1+
version = "2.24.*"
22
# upstream_repository = closed-source

stubs/hdbcli/hdbcli/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
from . import dbapi as dbapi
22

33
__version__: str
4+
5+
__all__ = ["dbapi"]

stubs/hdbcli/hdbcli/dbapi.pyi

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
import decimal
22
from _typeshed import Incomplete, ReadableBuffer
3-
from collections.abc import Sequence
3+
from collections.abc import Callable, Sequence
44
from datetime import date, datetime, time
55
from types import TracebackType
6-
from typing import Any, Literal, overload
6+
from typing import Any, Final, Literal, overload
77
from typing_extensions import Self, TypeAlias
88

99
from .resultrow import ResultRow
1010

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

1515
class Connection:
1616
def __init__(
1717
self,
18-
address: str,
19-
port: int,
20-
user: str,
21-
password: str,
22-
autocommit: bool = ...,
23-
packetsize: int | None = ...,
18+
address: str = "",
19+
port: int = 0,
20+
user: str = "",
21+
password: str = "",
22+
autocommit: bool = True,
23+
packetsize: int | None = None,
2424
userkey: str | None = ...,
2525
*,
2626
sessionvariables: dict[str, str] | None = ...,
@@ -38,7 +38,7 @@ class Connection:
3838
def rollback(self) -> None: ...
3939
def setautocommit(self, auto: bool = ...) -> None: ...
4040
def setclientinfo(self, key: str, value: str | None = ...) -> None: ...
41-
def ontrace(self) -> None: ...
41+
def ontrace(self, callback: Callable[[str], Any], options: str = ...) -> None: ...
4242

4343
connect = Connection
4444

@@ -66,7 +66,7 @@ class Cursor:
6666
def close(self) -> None: ...
6767
def description_ext(self) -> Sequence[tuple[Any, ...]]: ...
6868
def execute(self, operation: str, parameters: tuple[Any, ...] | None = ...) -> bool: ...
69-
def executemany(self, operation: str, parameters: _Parameters = ...) -> Any: ...
69+
def executemany(self, operation: str, parameters: _Parameters = ..., batcherrors: bool = False) -> Any: ...
7070
def executemanyprepared(self, parameters: _Parameters = ...) -> Any: ...
7171
def executeprepared(self, parameters: _Parameters = ...) -> Any: ...
7272
def fetchone(self, uselob: bool = ...) -> ResultRow | None: ...

0 commit comments

Comments
 (0)