Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
VeckoTheGecko committed Oct 28, 2024
1 parent 7db3d62 commit ebfbabf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions parcels/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ class Field:
* `Nested Fields <../examples/tutorial_NestedFields.ipynb>`__
"""

allow_time_extrapolation: bool
time_periodic: TimePeriodic

def __init__(
self,
name: str | tuple[str, str],
Expand Down
4 changes: 2 additions & 2 deletions parcels/tools/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def _format_list_items_multiline(items: list[str], level: int = 1) -> str:
indentation_str = level * 4 * " "
indentation_str_end = (level - 1) * 4 * " "

items = ",\n".join([textwrap.indent(i, indentation_str) for i in items])
return f"[\n{items}\n{indentation_str_end}]"
items_str = ",\n".join([textwrap.indent(i, indentation_str) for i in items])
return f"[\n{items_str}\n{indentation_str_end}]"


def particleset_repr(pset: ParticleSet) -> str:
Expand Down

0 comments on commit ebfbabf

Please sign in to comment.