From 838e929263a862fd4158a17f55e95c5a52878e75 Mon Sep 17 00:00:00 2001 From: Daniel <158782574+youarecode@users.noreply.github.com> Date: Mon, 7 Oct 2024 12:26:06 -0300 Subject: [PATCH 1/4] fix: linting at flux_table.py issue Ref #674 --- influxdb_client/client/flux_table.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/influxdb_client/client/flux_table.py b/influxdb_client/client/flux_table.py index 98a83159..5fd9a061 100644 --- a/influxdb_client/client/flux_table.py +++ b/influxdb_client/client/flux_table.py @@ -46,8 +46,8 @@ class FluxTable(FluxStructure): def __init__(self) -> None: """Initialize defaults.""" - self.columns = [] - self.records = [] + self.columns: List[FluxColumn] = [] + self.records: List[FluxRecord] = [] def get_group_key(self): """ From 6c1291e03dc92a3f2a1766ae7f94c35df3b972b7 Mon Sep 17 00:00:00 2001 From: Daniel <158782574+youarecode@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:18:05 -0300 Subject: [PATCH 2/4] fix: duplicated import Path at setup.py remove one duplicated ```from pathlib import Path``` --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 6d4a34cb..cda0d087 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,6 @@ 'aiocsv>=1.2.2' ] -from pathlib import Path this_directory = Path(__file__).parent long_description = (this_directory / "README.md").read_text() From ad05580c12fbb21e9889fba49f51c84c7e963b5f Mon Sep 17 00:00:00 2001 From: Daniel <158782574+youarecode@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:23:25 -0300 Subject: [PATCH 3/4] fix: Updated CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6937e242..5a402de9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ ## 1.47.0 [unreleased] +### Bug Fixes +1. [#674](https://github.com/influxdata/influxdb-client-python/pull/674): Adding type linting to client.flux_table.FluxTable +2. Removed duplicated ```from pathlib import Path``` at setup.py (to pass 1 linting test) + ### Bug Fixes 1. [#672](https://github.com/influxdata/influxdb-client-python/pull/672): Adding type validation to url attribute in client object From fabc9daef1d511d26ef42d1eb712f13ffca8be86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Bedn=C3=A1=C5=99?= Date: Tue, 8 Oct 2024 10:39:18 +0200 Subject: [PATCH 4/4] docs: Update CHANGELOG.md --- CHANGELOG.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5a402de9..1511f9f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,8 @@ ## 1.47.0 [unreleased] ### Bug Fixes -1. [#674](https://github.com/influxdata/influxdb-client-python/pull/674): Adding type linting to client.flux_table.FluxTable -2. Removed duplicated ```from pathlib import Path``` at setup.py (to pass 1 linting test) - -### Bug Fixes -1. [#672](https://github.com/influxdata/influxdb-client-python/pull/672): Adding type validation to url attribute in client object +1. [#672](https://github.com/influxdata/influxdb-client-python/pull/672): Add type validation to url attribute in client object +1. [#674](https://github.com/influxdata/influxdb-client-python/pull/674): Add type linting to client.flux_table.FluxTable, remove duplicated `from pathlib import Path` at setup.py ## 1.46.0 [2024-09-13]