From 0f96bd3cb5d1d3edb0dd5d296f5415f7495688c9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Mar 2024 21:32:32 -0700 Subject: [PATCH] Bump mypy from 0.910 to 1.8.0 in /semantic-conventions (#250) Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- semantic-conventions/dev-requirements.txt | 4 ++-- .../src/opentelemetry/semconv/model/constraints.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/semantic-conventions/dev-requirements.txt b/semantic-conventions/dev-requirements.txt index efc47b8a..bb5fe10c 100644 --- a/semantic-conventions/dev-requirements.txt +++ b/semantic-conventions/dev-requirements.txt @@ -1,6 +1,6 @@ black==24.2.0 -mypy==0.910 +mypy==1.8.0 pytest==8.1.1 flake8==7.0.0 pylint==3.1.0 -isort==5.13.2 \ No newline at end of file +isort==5.13.2 diff --git a/semantic-conventions/src/opentelemetry/semconv/model/constraints.py b/semantic-conventions/src/opentelemetry/semconv/model/constraints.py index 2e44119c..9acf8c32 100644 --- a/semantic-conventions/src/opentelemetry/semconv/model/constraints.py +++ b/semantic-conventions/src/opentelemetry/semconv/model/constraints.py @@ -13,7 +13,7 @@ # limitations under the License. from dataclasses import dataclass, replace -from typing import List, Tuple +from typing import Tuple from ruamel.yaml.comments import CommentedSeq @@ -52,7 +52,7 @@ def __eq__(self, other): def __hash__(self): return hash(self.choice_list_ids) - def add_attributes(self, attr: List[SemanticAttribute]): + def add_attributes(self, attr: Tuple[SemanticAttribute]): self.choice_list_attributes += (attr,) def inherit_anyof(self):