Skip to content

Commit 856fa6c

Browse files
committed
correct type hint
1 parent 27cc78d commit 856fa6c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hydrolib/core/dflowfm/polyfile/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def y(self) -> List[float]:
144144
"""Y-coordinates of all points in the PolyFile."""
145145
return [point.y for obj in self.objects for point in obj.points]
146146

147-
def get_z_sources_sinks(self) -> Tuple[List[float]]:
147+
def get_z_sources_sinks(self) -> Tuple[List[float], List[float]]:
148148
"""
149149
Get the z values of the source and sink points from the polyline file.
150150
@@ -186,6 +186,6 @@ def get_z_sources_sinks(self) -> Tuple[List[float]]:
186186
else:
187187
z_source_sink.append([point.z])
188188

189-
z_sink = z_source_sink[0]
190-
z_source = z_source_sink[1]
189+
z_sink: list[float | None] = z_source_sink[0]
190+
z_source: list[float | None] = z_source_sink[1]
191191
return z_source, z_sink

0 commit comments

Comments
 (0)