Skip to content

Commit

Permalink
no internals for get_all_labware_definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Aug 6, 2024
1 parent e7012b5 commit 5b06990
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions api/src/opentrons/protocols/labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
)
from opentrons_shared_data.labware.types import LabwareDefinition

if TYPE_CHECKING:
from _typeshed import GenericPath


MODULE_LOG = logging.getLogger(__name__)

Expand Down Expand Up @@ -73,7 +70,7 @@ def get_all_labware_definitions() -> List[str]:
"""
labware_list = ModifiedList()

def _check_for_subdirectories(path: Union[int, GenericPath[AnyStr]]) -> None:
def _check_for_subdirectories(path: Union[str, Path, os.DirEntry[str]]) -> None:
with os.scandir(path) as top_path:
for sub_dir in top_path:
if sub_dir.is_dir():
Expand Down

0 comments on commit 5b06990

Please sign in to comment.