Skip to content

Commit

Permalink
Fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sosna committed May 16, 2024
1 parent 78e2301 commit 794c71f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/pysdmx/model/dataflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/model/test_encoders.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 794c71f

Please sign in to comment.