Skip to content

Commit

Permalink
TYP: Fix Python 3.12 type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Aug 23, 2024
1 parent 55283a5 commit 251f83d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/xtgeo/grid3d/_ecl_inte_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from typing import Any, Literal, cast

import numpy as np
import numpy.typing as npt

from ._ecl_output_file import Phases, Simulator, TypeOfGrid, UnitSystem

Expand All @@ -29,7 +30,7 @@ class InteHead:
True
"""

def __init__(self, values: np.ndarray[np.int_, Any]) -> None:
def __init__(self, values: npt.NDArray[np.int_]) -> None:
"""Create an InteHead from the corresponding array.
Args:
Expand Down

0 comments on commit 251f83d

Please sign in to comment.