Skip to content

Commit

Permalink
update type hints for *args parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jul 3, 2023
1 parent 1ba7106 commit 0f1352a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nplinker/scoring/metcalf_scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,16 +122,15 @@ def setup(npl: NPLinker):
def datalinks(self) -> DataLinks:
return MetcalfScoring.DATALINKS

def get_links(self, *objects: tuple[GCF, ...] | tuple[Spectrum, ...]
| tuple[MolecularFamily, ...],
def get_links(self, *objects: GCF | Spectrum | MolecularFamily,
link_collection: LinkCollection) -> LinkCollection:
"""Get links for the given objects and add them to the given LinkCollection.
The given objects are treated as input or source objects, which must
be GCF, Spectrum or MolecularFamily objects.
Args:
objects(tuple): The objects to get links for. Must be GCF, Spectrum
objects: The objects to get links for. Must be GCF, Spectrum
or MolecularFamily objects.
link_collection: The LinkCollection object to add the links to.
Expand Down

0 comments on commit 0f1352a

Please sign in to comment.