Skip to content

Commit

Permalink
fixup mypy versions again
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrivenaes committed Jan 8, 2025
1 parent 42199e9 commit 80c257d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
mypy:
strategy:
matrix:
python-version: ["3.9", "3.12"]
python-version: ["3.8", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
5 changes: 3 additions & 2 deletions src/xtgeo/grid3d/_grid_etc1.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from copy import deepcopy
from functools import lru_cache
from math import atan2, degrees
from typing import TYPE_CHECKING, Literal
from typing import TYPE_CHECKING, Literal, no_type_check

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -1007,6 +1007,7 @@ def copy(self: Grid) -> Grid:
)


@no_type_check
def crop(
self: Grid,
spec: tuple[tuple[int, int], tuple[int, int], tuple[int, int]],
Expand Down Expand Up @@ -1100,7 +1101,7 @@ def crop(
if arrxmap.size > 0:
newsub[sub] = arrxmap.astype(np.int32).tolist()

self.subgrids = newsub # type: ignore[cryptical mypy error]
self.subgrids = newsub

# crop properties
props = self.props if props == "all" else props
Expand Down

0 comments on commit 80c257d

Please sign in to comment.