From 23d2611679fa10a697724f04ce6248c342891e86 Mon Sep 17 00:00:00 2001 From: CircleCI Date: Mon, 18 Nov 2024 15:36:47 +0200 Subject: [PATCH 1/3] bump pre-commit python to 3.9 --- .pre-commit-config.yaml | 2 +- src/lumigo_opentelemetry/libs/general_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e125150d..cc8df4fb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ repos: rev: 20.8b1 hooks: - id: black - language_version: python3.7 + language_version: python3.9 exclude: '(src/lumigo_opentelemetry/external/.*|src/test/integration/grpcio/app/helloworld_pb2.*)' additional_dependencies: ['click==8.0.4'] diff --git a/src/lumigo_opentelemetry/libs/general_utils.py b/src/lumigo_opentelemetry/libs/general_utils.py index c7b511a0..f222f48d 100644 --- a/src/lumigo_opentelemetry/libs/general_utils.py +++ b/src/lumigo_opentelemetry/libs/general_utils.py @@ -2,7 +2,7 @@ import logging try: - from collections import Iterable + from collections import Iterable # type: ignore except ImportError: # collections.Iterables was removed in Python 3.10 from collections.abc import Iterable From 5dce7e27d137e9cb0feb2626c90882165750fb64 Mon Sep 17 00:00:00 2001 From: CircleCI Date: Mon, 18 Nov 2024 16:04:46 +0200 Subject: [PATCH 2/3] try another ignore syntax --- src/lumigo_opentelemetry/libs/general_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lumigo_opentelemetry/libs/general_utils.py b/src/lumigo_opentelemetry/libs/general_utils.py index f222f48d..c1c3c119 100644 --- a/src/lumigo_opentelemetry/libs/general_utils.py +++ b/src/lumigo_opentelemetry/libs/general_utils.py @@ -2,7 +2,7 @@ import logging try: - from collections import Iterable # type: ignore + from collections import Iterable # type: ignore[attr-defined] except ImportError: # collections.Iterables was removed in Python 3.10 from collections.abc import Iterable From cbccc0ed04d4eaaea885d0338592947bda26b4d4 Mon Sep 17 00:00:00 2001 From: CircleCI Date: Mon, 18 Nov 2024 16:28:12 +0200 Subject: [PATCH 3/3] remove ignore directive --- src/lumigo_opentelemetry/libs/general_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lumigo_opentelemetry/libs/general_utils.py b/src/lumigo_opentelemetry/libs/general_utils.py index c1c3c119..c7b511a0 100644 --- a/src/lumigo_opentelemetry/libs/general_utils.py +++ b/src/lumigo_opentelemetry/libs/general_utils.py @@ -2,7 +2,7 @@ import logging try: - from collections import Iterable # type: ignore[attr-defined] + from collections import Iterable except ImportError: # collections.Iterables was removed in Python 3.10 from collections.abc import Iterable