Skip to content

Commit

Permalink
Fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian committed Mar 13, 2024
1 parent b0565a8 commit 3d354cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ribasim/ribasim/geometry/edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def get_where_edge_type(self, edge_type: str) -> NDArray[np.bool_]:
assert self.df is not None
return (self.df.edge_type == edge_type).to_numpy()

def plot(self, **kwargs) -> Axes:
def plot(self, **kwargs) -> Axes | None:
if self.df is None:
return
return None

Check warning on line 83 in python/ribasim/ribasim/geometry/edge.py

View check run for this annotation

Codecov / codecov/patch

python/ribasim/ribasim/geometry/edge.py#L83

Added line #L83 was not covered by tests
kwargs = kwargs.copy() # Avoid side-effects
ax = kwargs.get("ax", None)
color_flow = kwargs.pop("color_flow", None)
Expand Down

0 comments on commit 3d354cd

Please sign in to comment.