From 1a314e9c739cbb07aca2f5c3a7750ee496ae83b9 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Tue, 1 Nov 2022 08:32:58 +0100 Subject: [PATCH 1/2] fix: creating client instance from static configuration --- influxdb_client/client/influxdb_client.py | 5 ++--- influxdb_client/client/influxdb_client_async.py | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/influxdb_client/client/influxdb_client.py b/influxdb_client/client/influxdb_client.py index 91030774..8b164f67 100644 --- a/influxdb_client/client/influxdb_client.py +++ b/influxdb_client/client/influxdb_client.py @@ -173,8 +173,7 @@ def from_config_file(cls, config_file: str = "config.ini", debug=None, enable_gz } """ - return super(InfluxDBClient, cls)._from_config_file(config_file=config_file, debug=debug, - enable_gzip=enable_gzip, **kwargs) + return InfluxDBClient._from_config_file(config_file=config_file, debug=debug, enable_gzip=enable_gzip, **kwargs) @classmethod def from_env_properties(cls, debug=None, enable_gzip=False, **kwargs): @@ -208,7 +207,7 @@ def from_env_properties(cls, debug=None, enable_gzip=False, **kwargs): - INFLUXDB_V2_PROFILERS - INFLUXDB_V2_TAG """ - return super(InfluxDBClient, cls)._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs) + return InfluxDBClient._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs) def write_api(self, write_options=WriteOptions(), point_settings=PointSettings(), **kwargs) -> WriteApi: """ diff --git a/influxdb_client/client/influxdb_client_async.py b/influxdb_client/client/influxdb_client_async.py index 96953cb3..411fad62 100644 --- a/influxdb_client/client/influxdb_client_async.py +++ b/influxdb_client/client/influxdb_client_async.py @@ -189,8 +189,8 @@ def from_config_file(cls, config_file: str = "config.ini", debug=None, enable_gz } """ - return super(InfluxDBClientAsync, cls)._from_config_file(config_file=config_file, debug=debug, - enable_gzip=enable_gzip, **kwargs) + return InfluxDBClientAsync._from_config_file(config_file=config_file, debug=debug, + enable_gzip=enable_gzip, **kwargs) @classmethod def from_env_properties(cls, debug=None, enable_gzip=False, **kwargs): @@ -225,7 +225,7 @@ def from_env_properties(cls, debug=None, enable_gzip=False, **kwargs): - INFLUXDB_V2_PROFILERS - INFLUXDB_V2_TAG """ - return super(InfluxDBClientAsync, cls)._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs) + return InfluxDBClientAsync._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs) async def ping(self) -> bool: """ From 7c4e1a6019abfac2cacf41edcd728b6e70a1ad40 Mon Sep 17 00:00:00 2001 From: Jakub Bednar Date: Tue, 1 Nov 2022 08:35:56 +0100 Subject: [PATCH 2/2] docs: update CHANGELOG.md --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c27b1e1..17bc64d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.35.0 [unreleased] +### Bug Fixes +1. [#526](https://github.com/influxdata/influxdb-client-python/pull/526): Creating client instance from static configuration + ### CI 1. [#523](https://github.com/influxdata/influxdb-client-python/pull/523): Add Python 3.11 to CI builds