Skip to content

Commit

Permalink
CLN: Add types to _ecl_logi_head
Browse files Browse the repository at this point in the history
  • Loading branch information
mferrera committed Nov 23, 2023
1 parent 4dc7244 commit 684546b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xtgeo/grid3d/_ecl_logi_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from ._ecl_output_file import Simulator


def lookup_optional_code(values, index):
def lookup_optional_code(values: list[bool], index: int) -> bool | None:
if len(values) <= index:
return None
return values[index]
Expand Down Expand Up @@ -54,7 +54,7 @@ class LogiHead:
coal_bed_methane: bool | None = None

@classmethod
def from_file_values(cls, values: list[bool], simulator: Simulator):
def from_file_values(cls, values: list[bool], simulator: Simulator) -> LogiHead:
"""Construct a LogiHead from the array following the LOGIHEAD keyword
Args:
values: The iterable of boolean values following the LOGIHEAD keyword
Expand Down

0 comments on commit 684546b

Please sign in to comment.