Skip to content

Commit

Permalink
fix(core.grids.py): fixes error related to python 3.8 not supporting …
Browse files Browse the repository at this point in the history
…new type annotation Dict-dict List-list
  • Loading branch information
Oli4 committed Mar 29, 2023
1 parent 236c074 commit 3c6ba41
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/eyepy/core/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
from collections.abc import Sequence
import functools
import logging
from typing import Any, Iterable, Optional, Union
from typing import Any, Iterable, Optional, TYPE_CHECKING, Union

import numpy as np
import numpy.typing as npt
from skimage import transform

logger = logging.getLogger(__name__)

Shape = Union[int, tuple[int, int]]
if TYPE_CHECKING:
Shape = Union[int, tuple[int, int]]


def circle_mask(radius: int,
Expand Down

0 comments on commit 3c6ba41

Please sign in to comment.