Skip to content

Commit

Permalink
CLN: add types to grid_etc1 (equinor#1089)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnatt authored Dec 12, 2023
1 parent 23aae41 commit 97b3f09
Show file tree
Hide file tree
Showing 7 changed files with 288 additions and 267 deletions.
3 changes: 0 additions & 3 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ ignore_errors = True
[mypy-xtgeo.grid3d._grid3d_utils]
ignore_errors = True

[mypy-xtgeo.grid3d._grid_etc1]
ignore_errors = True

[mypy-xtgeo.grid3d._grid_export]
ignore_errors = True

Expand Down
4 changes: 3 additions & 1 deletion src/xtgeo/common/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ def averageangle(anglelist: Sequence[float]) -> float:
return _cxtgeo.x_avg_angles(anglelist)


def find_flip(xv: tuple[float], yv: tuple[float]) -> Literal[-1, 1]:
def find_flip(
xv: tuple[float, float, float], yv: tuple[float, float, float]
) -> Literal[-1, 1]:
"""Find the XY flip status by computing the cross products.
If flip is 1, then the system is right handed in school algebra
Expand Down
Loading

0 comments on commit 97b3f09

Please sign in to comment.