Skip to content

Commit

Permalink
CLN: Update typing in gridprop_op1
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Nov 13, 2023
1 parent 13d43a1 commit e4fb136
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/xtgeo/grid3d/_gridprop_op1.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
from xtgeo.grid3d import Grid, GridProperty
from xtgeo.xyz import Polygons


XYCoordinate = Tuple[Union[float, int], Union[float, int]]
XYCoordList = List[List[List[XYCoordinate]]]
ValueList = List[List[Union[float, int]]]
XYValueLists = Tuple[XYCoordList, ValueList]
_CoordOrValue = Union[float, int]
_XYCoordinate = Tuple[_CoordOrValue, _CoordOrValue]
_XYCoordList = List[List[List[_XYCoordinate]]]
_ValueList = List[List[_CoordOrValue]]
XYValueLists = Tuple[_XYCoordList, _ValueList]


def get_xy_value_lists(
self: GridProperty,
grid: Optional[Union[Grid, GridProperty]] = None,
grid: Optional[Grid | GridProperty] = None,
mask: Optional[bool] = None,
) -> XYValueLists:
"""Get values for webportal format
Expand Down Expand Up @@ -87,7 +87,7 @@ def get_xy_value_lists(
def operation_polygons(
self: GridProperty,
poly: Polygons,
value: Union[float, int],
value: float | int,
opname: Literal["add", "sub", "mul", "div", "set"] = "add",
inside: bool = True,
) -> None:
Expand Down

0 comments on commit e4fb136

Please sign in to comment.