File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
hydrolib/core/dflowfm/polyfile Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ def y(self) -> List[float]:
144
144
"""Y-coordinates of all points in the PolyFile."""
145
145
return [point .y for obj in self .objects for point in obj .points ]
146
146
147
- def get_z_sources_sinks (self ) -> Tuple [List [float ]]:
147
+ def get_z_sources_sinks (self ) -> Tuple [List [float ], List [ float ] ]:
148
148
"""
149
149
Get the z values of the source and sink points from the polyline file.
150
150
@@ -186,6 +186,6 @@ def get_z_sources_sinks(self) -> Tuple[List[float]]:
186
186
else :
187
187
z_source_sink .append ([point .z ])
188
188
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 ]
191
191
return z_source , z_sink
You can’t perform that action at this time.
0 commit comments