Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply black 24.1.1 #318

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading