Skip to content

Commit 0927944

Browse files
authored
fix: creating client instance from static configuration (#526)
1 parent 4311923 commit 0927944

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 1.35.0 [unreleased]
22

3+
### Bug Fixes
4+
1. [#526](https://github.com/influxdata/influxdb-client-python/pull/526): Creating client instance from static configuration
5+
36
### CI
47
1. [#523](https://github.com/influxdata/influxdb-client-python/pull/523): Add Python 3.11 to CI builds
58

influxdb_client/client/influxdb_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ def from_config_file(cls, config_file: str = "config.ini", debug=None, enable_gz
173173
}
174174
175175
"""
176-
return super(InfluxDBClient, cls)._from_config_file(config_file=config_file, debug=debug,
177-
enable_gzip=enable_gzip, **kwargs)
176+
return InfluxDBClient._from_config_file(config_file=config_file, debug=debug, enable_gzip=enable_gzip, **kwargs)
178177

179178
@classmethod
180179
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):
208207
- INFLUXDB_V2_PROFILERS
209208
- INFLUXDB_V2_TAG
210209
"""
211-
return super(InfluxDBClient, cls)._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs)
210+
return InfluxDBClient._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs)
212211

213212
def write_api(self, write_options=WriteOptions(), point_settings=PointSettings(), **kwargs) -> WriteApi:
214213
"""

influxdb_client/client/influxdb_client_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ def from_config_file(cls, config_file: str = "config.ini", debug=None, enable_gz
189189
}
190190
191191
"""
192-
return super(InfluxDBClientAsync, cls)._from_config_file(config_file=config_file, debug=debug,
193-
enable_gzip=enable_gzip, **kwargs)
192+
return InfluxDBClientAsync._from_config_file(config_file=config_file, debug=debug,
193+
enable_gzip=enable_gzip, **kwargs)
194194

195195
@classmethod
196196
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):
225225
- INFLUXDB_V2_PROFILERS
226226
- INFLUXDB_V2_TAG
227227
"""
228-
return super(InfluxDBClientAsync, cls)._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs)
228+
return InfluxDBClientAsync._from_env_properties(debug=debug, enable_gzip=enable_gzip, **kwargs)
229229

230230
async def ping(self) -> bool:
231231
"""

0 commit comments

Comments
 (0)