Skip to content

Commit

Permalink
support opentrons_shared_data==8.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwierenga committed Nov 15, 2024
1 parent 283eb40 commit 748b958
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ ignore_missing_imports = True

[mypy-pylibftdi.*]
ignore_missing_imports = True

[mypy-opentrons_shared_data.*]
ignore_missing_imports = True
7 changes: 4 additions & 3 deletions pylabrobot/resources/opentrons/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 748b958

Please sign in to comment.