Skip to content

Commit

Permalink
fix groups error
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Carlstrom <rmc@carlstrom.com>
  • Loading branch information
InvincibleRMC committed Sep 28, 2024
1 parent 5017663 commit 538dd04
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rosidl_cli/rosidl_cli/entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def get_entry_points(group_name: str, *, specs: Optional[List[str]] = None, stri
entry_points_impl = importlib_metadata.entry_points()
# Select does not exist until python 3.10
if sys.version_info >= (3, 10):
groups: Union[importlib_metadata.EntryPoints, List[importlib_metadata.EntryPoint]] = \
entry_points_impl.select(group=group_name)
groups = entry_points_impl.select(group=group_name)
else:
groups = entry_points_impl.get(group_name, [])

Expand Down

0 comments on commit 538dd04

Please sign in to comment.