Skip to content

Commit

Permalink
ignore more lines in compatibility layer
Browse files Browse the repository at this point in the history
  • Loading branch information
elephantum committed Aug 11, 2024
1 parent df79cd9 commit e4db84d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datapipe/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,13 +514,13 @@ def migrate_transform_tables(ctx: click.Context, labels: str, name: str) -> None


try:
entry_points = metadata.entry_points(group="datapipe.cli")
entry_points = metadata.entry_points(group="datapipe.cli") # type: ignore
except TypeError:
# Compatibility with older versions of importlib.metadata (Python 3.8-3.9)
entry_points = metadata.entry_points().get("datapipe.cli", []) # type: ignore

for entry_point in entry_points:
register_commands = entry_point.load()
register_commands = entry_point.load() # type: ignore
register_commands(cli)


Expand Down

0 comments on commit e4db84d

Please sign in to comment.