Skip to content

Commit

Permalink
remove literal type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
CunliangGeng committed Jun 17, 2024
1 parent 8eaa188 commit 667227f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nplinker/metabolomics/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SpectrumLoaderBase(ABC):

@property
@abstractmethod
def spectra(self) -> list["Spectrum"]:
def spectra(self) -> list[Spectrum]:
"""Get Spectrum objects.
Returns:
Expand All @@ -22,7 +22,7 @@ class MolecularFamilyLoaderBase(ABC):
"""Abstract base class for MolecularFamilyLoader."""

@abstractmethod
def get_mfs(self, keep_singleton: bool) -> list["MolecularFamily"]:
def get_mfs(self, keep_singleton: bool) -> list[MolecularFamily]:
"""Get MolecularFamily objects.
Args:
Expand Down

0 comments on commit 667227f

Please sign in to comment.