Skip to content

Commit

Permalink
[info/plugin] Explicit is better than implicit.
Browse files Browse the repository at this point in the history
  • Loading branch information
SepandKashani committed Apr 8, 2024
1 parent 6cbec41 commit a2eaeb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pyxu/info/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def _load_entry_points(glob, group, names=None):

# Check for duplicated entry points
seen = set()
duplicated = [ep.name for ep in eps if ep in seen or seen.add(ep.name)]
if len(duplicated):
duplicated = [ep.name for ep in eps if (ep in seen) or seen.add(ep.name)]
if len(duplicated) > 0:
warnings.warn(f"Found duplicated entry points: {duplicated}.", pxw.ContributionWarning)

# Load entry points
Expand Down

0 comments on commit a2eaeb4

Please sign in to comment.