From 794c71fff148d385621d4d3d8c20d1bb5228b158 Mon Sep 17 00:00:00 2001 From: Xavier Sosnovsky Date: Thu, 16 May 2024 13:57:56 +0200 Subject: [PATCH] Fix flake8 issues --- src/pysdmx/model/dataflow.py | 9 +++++++++ tests/model/test_encoders.py | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pysdmx/model/dataflow.py b/src/pysdmx/model/dataflow.py index 6859223..c92cddd 100644 --- a/src/pysdmx/model/dataflow.py +++ b/src/pysdmx/model/dataflow.py @@ -120,6 +120,9 @@ def dtype(self) -> DataType: the data type of the referenced concept (if any). In case neither are set, the data type will default to string. + + Returns: + The component data type (local, core or default). """ if self.local_dtype: return self.local_dtype @@ -135,6 +138,9 @@ def facets(self) -> Optional[Facets]: This will return the local facets (if any) or the facets of the referenced concept (if any), or None in case neither are set. + + Returns: + The component facets (local or core). """ if self.local_facets: return self.local_facets @@ -150,6 +156,9 @@ def codes(self) -> Union[Codelist, Hierarchy, None]: This will return the local codes (if any) or the codes of the referenced concept (if any), or None in case neither are set. + + Returns: + The component codes (local or core). """ if self.local_codes: return self.local_codes diff --git a/tests/model/test_encoders.py b/tests/model/test_encoders.py index 6a7e7ea..074452e 100644 --- a/tests/model/test_encoders.py +++ b/tests/model/test_encoders.py @@ -3,7 +3,7 @@ import pytest -from pysdmx.model import Concept, Component, Components, encoders, Role +from pysdmx.model import Component, Components, Concept, encoders, Role def test_pattern():