Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/groundlight/optional_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __getattr__(self, key): # pylint: disable=bad-mcs-method-argument
except ImportError as e:
np = UnavailableModule(e)
# Expose np.ndarray so type-hinting looks normal
np.ndarray = np # pylint: disable=attribute-defined-outside-init
np.ndarray = np # type: ignore # pylint: disable=attribute-defined-outside-init
MISSING_NUMPY = True

try:
Expand All @@ -46,7 +46,7 @@ def __getattr__(self, key): # pylint: disable=bad-mcs-method-argument
except ImportError as e:
PIL = UnavailableModule(e)
Image = PIL
Image.Image = PIL # for type-hinting; pylint: disable=attribute-defined-outside-init
Image.Image = PIL # type: ignore # for type-hinting; pylint: disable=attribute-defined-outside-init
MISSING_PIL = True


Expand Down
Loading