Skip to content

Commit

Permalink
Apply black 24.1.1 (#318)
Browse files Browse the repository at this point in the history
  • Loading branch information
phackstock authored Feb 6, 2024
1 parent 320b021 commit 86d38f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
8 changes: 5 additions & 3 deletions nomenclature/processor/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,11 @@ def to_yaml(self, file) -> None:
}
if self.native_regions:
dict_representation["native_regions"] = [
{native_region.name: native_region.rename}
if native_region.rename
else native_region.name
(
{native_region.name: native_region.rename}
if native_region.rename
else native_region.name
)
for native_region in self.native_regions
]
if self.common_regions:
Expand Down
7 changes: 4 additions & 3 deletions nomenclature/processor/required_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ def cast_to_RequiredMeasurand(v) -> RequiredMeasurand:


class RequiredData(BaseModel):
measurand: List[
Annotated[RequiredMeasurand, BeforeValidator(cast_to_RequiredMeasurand)]
] | None = None
measurand: (
List[Annotated[RequiredMeasurand, BeforeValidator(cast_to_RequiredMeasurand)]]
| None
) = None
variable: List[str] | None = None
region: List[str] | None = None
year: List[int] | None = None
Expand Down

0 comments on commit 86d38f9

Please sign in to comment.