diff --git a/stubs/influxdb-client/METADATA.toml b/stubs/influxdb-client/METADATA.toml index f29b016fad01..e8b3b5471091 100644 --- a/stubs/influxdb-client/METADATA.toml +++ b/stubs/influxdb-client/METADATA.toml @@ -1,4 +1,4 @@ -version = "1.42.*" +version = "1.43.*" upstream_repository = "https://github.com/influxdata/influxdb-client-python" # requires a version of urllib3 with a py.typed file requires = ["urllib3>=2"] diff --git a/stubs/influxdb-client/influxdb_client/client/exceptions.pyi b/stubs/influxdb-client/influxdb_client/client/exceptions.pyi index 2ddf0da72506..0770c7f9fefc 100644 --- a/stubs/influxdb-client/influxdb_client/client/exceptions.pyi +++ b/stubs/influxdb-client/influxdb_client/client/exceptions.pyi @@ -2,10 +2,12 @@ from _typeshed import Incomplete from urllib3 import HTTPResponse +from .._sync.rest import RESTResponse + logger: Incomplete class InfluxDBError(Exception): response: Incomplete message: Incomplete retry_after: Incomplete - def __init__(self, response: HTTPResponse | None = None, message: str | None = None) -> None: ... + def __init__(self, response: HTTPResponse | RESTResponse | None = None, message: str | None = None) -> None: ... diff --git a/stubs/influxdb-client/influxdb_client/rest.pyi b/stubs/influxdb-client/influxdb_client/rest.pyi index 55b012b65e62..b25e6d3cb706 100644 --- a/stubs/influxdb-client/influxdb_client/rest.pyi +++ b/stubs/influxdb-client/influxdb_client/rest.pyi @@ -1,6 +1,9 @@ from _typeshed import Incomplete -from influxdb_client.client.exceptions import InfluxDBError +from urllib3 import HTTPResponse + +from ._sync.rest import RESTResponse +from .client.exceptions import InfluxDBError class ApiException(InfluxDBError): status: Incomplete @@ -8,7 +11,10 @@ class ApiException(InfluxDBError): body: Incomplete headers: Incomplete def __init__( - self, status: Incomplete | None = None, reason: Incomplete | None = None, http_resp: Incomplete | None = None + self, + status: Incomplete | None = None, + reason: Incomplete | None = None, + http_resp: HTTPResponse | RESTResponse | None = None, ) -> None: ... class _BaseRESTClient: