Skip to content

Commit

Permalink
pyupgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
VeckoTheGecko committed Sep 10, 2024
1 parent 77cfc13 commit b6c8223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parcels/tools/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import functools
import warnings
from typing import Callable
from collections.abc import Callable

PACKAGE = "Parcels"

Expand Down
4 changes: 2 additions & 2 deletions tests/test_reprs.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from typing import Any, Type
from typing import Any

import numpy as np

from parcels import Grid, TimeConverter
from parcels.grid import RectilinearGrid


def validate_simple_repr(class_: Type, kwargs: dict[str, Any]):
def validate_simple_repr(class_: type, kwargs: dict[str, Any]):
"""Test that the repr of an object contains all the arguments. This only works for simple objects."""
obj = class_(**kwargs)
obj_repr = repr(obj)
Expand Down

0 comments on commit b6c8223

Please sign in to comment.