Skip to content

Commit f8ec006

Browse files
author
brandon
committed
disable mypy linting errors
1 parent e438031 commit f8ec006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/groundlight/optional_imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __getattr__(self, key): # pylint: disable=bad-mcs-method-argument
3535
except ImportError as e:
3636
np = UnavailableModule(e)
3737
# Expose np.ndarray so type-hinting looks normal
38-
np.ndarray = np # pylint: disable=attribute-defined-outside-init
38+
np.ndarray = np # pylint: disable=attribute-defined-outside-init # type: ignore[attr-defined]
3939
MISSING_NUMPY = True
4040

4141
try:
@@ -46,7 +46,7 @@ def __getattr__(self, key): # pylint: disable=bad-mcs-method-argument
4646
except ImportError as e:
4747
PIL = UnavailableModule(e)
4848
Image = PIL
49-
Image.Image = PIL # for type-hinting; pylint: disable=attribute-defined-outside-init
49+
Image.Image = PIL # for type-hinting; pylint: disable=attribute-defined-outside-init # type: ignore[attr-defined]
5050
MISSING_PIL = True
5151

5252

0 commit comments

Comments
 (0)