Skip to content

Commit 188f0be

Browse files
author
brandon
committed
mypy and pylint don't always play nice
1 parent ef7f294 commit 188f0be

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 # type: ignore
38+
np.ndarray = np # type: ignore # pylint: disable=attribute-defined-outside-init
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 # type: ignore
49+
Image.Image = PIL # type: ignore # for type-hinting; pylint: disable=attribute-defined-outside-init
5050
MISSING_PIL = True
5151

5252

0 commit comments

Comments
 (0)