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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

donBarbos
Copy link
Contributor

bump with some improvements

bump with some improvements
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@@ -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: ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The documentation here reads more like batcherrors: bool = False

https://help.sap.com/docs/SAP_HANA_CLIENT/f1b440ded6144a54ada97ff95dac7adf/15e46b843c8045ec854d6375790cd504.html

Given that the header is executemany(operation, list_of_parameters[, batcherrors=False]) and the syntax is cursor.executemany(<operation>, <list_of_parameters>[, <batcherrors> = {True | False} ])

I think the "optional" in

The method cursor.executemany() has an optional Boolean parameter batcherrors

means that the parameter may be omitted, not that it may be None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, i'll fix it

@@ -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: ...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on the docs, I think options may be omitted here, and if it's present it should be a string.

Something like options: str = ...

https://help.sap.com/docs/SAP_HANA_CLIENT/f1b440ded6144a54ada97ff95dac7adf/c7f3f3f2f1e94e0bae307360fc5af265.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants