Skip to content

Commit

Permalink
Fix type -> type
Browse files Browse the repository at this point in the history
  • Loading branch information
civerachb-cpr committed Nov 4, 2024
1 parent 28b2ef2 commit fa883ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clearpath_config/platform/types/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,5 @@ def is_valid(cls, _type: str) -> bool:
return _type in cls.TYPES

def __new__(cls, _type: str) -> BaseAttachment:
assert cls.is_valid(type), f'{cls.PLATFORM} does not have attachment "{_type}". Must be one of "{cls.TYPES}"' # noqa:E501
assert cls.is_valid(_type), f'{cls.PLATFORM} does not have attachment "{_type}". Must be one of "{cls.TYPES}"' # noqa:E501
return cls.TYPES[_type]

0 comments on commit fa883ab

Please sign in to comment.