Skip to content

Commit

Permalink
Use "Model" rather than Self, which is Python 3.11+
Browse files Browse the repository at this point in the history
  • Loading branch information
visr committed Feb 12, 2024
1 parent 578bef1 commit 4ce2847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ribasim/ribasim/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ def _add_node_types(self):
)

@classmethod
def read(cls, filepath: FilePath) -> Self:
def read(cls, filepath: FilePath) -> "Model":
"""Read model from TOML file."""
return cls(filepath=filepath) # type: ignore

Expand Down

0 comments on commit 4ce2847

Please sign in to comment.