Skip to content

Commit

Permalink
chore: add docstring for base_model
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdtK committed Jul 22, 2024
1 parent 9b098be commit 51a1a2b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions geolib/models/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
class BaseModel(BaseDataClass, abc.ABC):
filename: Optional[Path] = None
datastructure: Optional[SerializeAsAny[BaseModelStructure]] = None
"""
This is the base class for all models in GEOLib.
Note that `datastructure` is a `SerializeAsAny` type, which means that
the inheriting class is serialized according to its own definition.
"""

def execute(self, timeout_in_seconds: int = meta.timeout) -> "BaseModel":
"""Execute a Model and wait for `timeout` seconds.
Expand Down

0 comments on commit 51a1a2b

Please sign in to comment.