From c625e4f599f966796d58870d0e6e28d69f53e6af Mon Sep 17 00:00:00 2001 From: Tobias Klockau Date: Fri, 20 Oct 2023 15:23:32 +0200 Subject: [PATCH] lint: fix warnings --- .../_onthology_classes/_attributes/_attribute_abc.py | 6 ++++-- .../validate_onthology/_onthology_classes/_onthology.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/raillabel_providerkit/validation/validate_onthology/_onthology_classes/_attributes/_attribute_abc.py b/raillabel_providerkit/validation/validate_onthology/_onthology_classes/_attributes/_attribute_abc.py index ae6b9d5..6edebc5 100644 --- a/raillabel_providerkit/validation/validate_onthology/_onthology_classes/_attributes/_attribute_abc.py +++ b/raillabel_providerkit/validation/validate_onthology/_onthology_classes/_attributes/_attribute_abc.py @@ -12,11 +12,13 @@ @dataclass class _Attribute(abc.ABC): - @abc.abstractclassmethod + @classmethod + @abc.abstractmethod def supports(cls, data_dict: dict) -> bool: raise NotImplementedError - @abc.abstractclassmethod + @classmethod + @abc.abstractmethod def fromdict(cls, data_dict: dict) -> t.Type["_Attribute"]: raise NotImplementedError diff --git a/raillabel_providerkit/validation/validate_onthology/_onthology_classes/_onthology.py b/raillabel_providerkit/validation/validate_onthology/_onthology_classes/_onthology.py index 15e319e..456f0b2 100644 --- a/raillabel_providerkit/validation/validate_onthology/_onthology_classes/_onthology.py +++ b/raillabel_providerkit/validation/validate_onthology/_onthology_classes/_onthology.py @@ -12,6 +12,7 @@ @dataclass class _Onthology: classes: t.Dict[str, _ObjectClass] + errors = [] @classmethod def fromdict(cls, data_dict: dict) -> "_Onthology":