Skip to content

Commit

Permalink
make 2 a string
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj committed Dec 10, 2024
1 parent 44f6c2c commit 7424fdd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/src/opentrons/protocols/labware.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_labware_definition(
return _get_standard_labware_definition(load_name, namespace, version)


def get_all_labware_definitions(schema_version: str = 2) -> List[str]:
def get_all_labware_definitions(schema_version: str = "2") -> List[str]:
"""
Return a list of standard and custom labware definitions with load_name +
name_space + version existing on the robot
Expand All @@ -77,7 +77,9 @@ def _check_for_subdirectories(path: Union[str, Path, os.DirEntry[str]]) -> None:
labware_list.append(sub_dir.name)

# check for standard labware
_check_for_subdirectories(get_shared_data_root() / STANDARD_DEFS_PATH / schema_version)
_check_for_subdirectories(
get_shared_data_root() / STANDARD_DEFS_PATH / schema_version
)
# check for custom labware
for namespace in os.scandir(USER_DEFS_PATH):
_check_for_subdirectories(namespace)
Expand Down

0 comments on commit 7424fdd

Please sign in to comment.