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):