diff --git a/mypy.ini b/mypy.ini index 62d9dc9384..614e388655 100644 --- a/mypy.ini +++ b/mypy.ini @@ -18,3 +18,6 @@ ignore_missing_imports = True [mypy-pylibftdi.*] ignore_missing_imports = True + +[mypy-opentrons_shared_data.*] +ignore_missing_imports = True diff --git a/pylabrobot/resources/opentrons/load.py b/pylabrobot/resources/opentrons/load.py index 843b0ee0b5..0b5acb33e7 100644 --- a/pylabrobot/resources/opentrons/load.py +++ b/pylabrobot/resources/opentrons/load.py @@ -19,9 +19,10 @@ if TYPE_CHECKING: - from opentrons_shared_data.labware.dev_types import ( - LabwareDefinition, - ) + try: + from opentrons_shared_data.labware.types import LabwareDefinition # type: ignore + except ImportError: + from opentrons_shared_data.labware.dev_types import LabwareDefinition # type: ignore class UnknownResourceType(Exception):