diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c2ca227..39eb6d24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## 1.11.0 [unreleased] +### Features +1. [#152](https://github.com/influxdata/influxdb-client-python/pull/152): WriteApi supports generic Iterable type + ## 1.10.0 [2020-08-14] ### Features diff --git a/influxdb_client/client/write_api.py b/influxdb_client/client/write_api.py index 6f70ae83..55fa1fe6 100644 --- a/influxdb_client/client/write_api.py +++ b/influxdb_client/client/write_api.py @@ -212,7 +212,8 @@ def __init__(self, influxdb_client, write_options: WriteOptions = WriteOptions() def write(self, bucket: str, org: str = None, record: Union[ - str, Iterable['str'], Point, Iterable['Point'], dict, Iterable['dict'], bytes, Iterable['bytes'], Observable] = None, + str, Iterable['str'], Point, Iterable['Point'], dict, Iterable['dict'], bytes, Iterable['bytes'], + Observable] = None, write_precision: WritePrecision = DEFAULT_WRITE_PRECISION, **kwargs) -> Any: """ Write time-series data into InfluxDB.