Skip to content

Commit 418b25a

Browse files
committed
fix: python 3.12 code formatting
1 parent e73d8e2 commit 418b25a

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

titiler/stacapi/factory.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -629,14 +629,18 @@ def get_layer_from_collections( # noqa: C901
629629
tms_id: None for tms_id in tilematrixsets
630630
}
631631

632-
if ("cube:dimensions" in collection.extra_fields
633-
and "time" in collection.extra_fields["cube:dimensions"]):
632+
if (
633+
"cube:dimensions" in collection.extra_fields
634+
and "time" in collection.extra_fields["cube:dimensions"]
635+
):
634636
layer["time"] = [
635637
python_datetime.datetime.strptime(
636638
t,
637639
"%Y-%m-%dT%H:%M:%SZ",
638640
).strftime("%Y-%m-%d")
639-
for t in collection.extra_fields["cube:dimensions"]["time"]["values"]
641+
for t in collection.extra_fields["cube:dimensions"]["time"][
642+
"values"
643+
]
640644
]
641645
elif intervals := temporal_extent.intervals:
642646
start_date = intervals[0][0]
@@ -1157,7 +1161,9 @@ def web_map_tile_service( # noqa: C901
11571161

11581162
colormap = get_dependency_params(
11591163
dependency=self.colormap_dependency,
1160-
query_params={"colormap": req["colormap"]} if "colormap" in req else layer.get("render") or {},
1164+
query_params={"colormap": req["colormap"]}
1165+
if "colormap" in req
1166+
else layer.get("render") or {},
11611167
)
11621168

11631169
content, media_type = render_image(

0 commit comments

Comments
 (0)