Skip to content

Commit

Permalink
Fix typing.
Browse files Browse the repository at this point in the history
  • Loading branch information
shyuep committed Sep 26, 2019
1 parent b03bf49 commit 67e4fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymatgen/analysis/magnetism/analyzer.py
Expand Up @@ -462,7 +462,7 @@ def magmoms(self) -> np.ndarray:
return np.array(self.structure.site_properties["magmom"])

@property
def types_of_magnetic_specie(self) -> Tuple[Union[Element, Specie, DummySpecie]]:
def types_of_magnetic_specie(self) -> Tuple[Union[Element, Specie, DummySpecie], ...]:
"""Equivalent to Structure.types_of_specie but only returns
magnetic species.
Expand All @@ -473,7 +473,7 @@ def types_of_magnetic_specie(self) -> Tuple[Union[Element, Specie, DummySpecie]]
structure = self.get_structure_with_only_magnetic_atoms()
return tuple(sorted(structure.types_of_specie))
else:
return tuple([]) # type: ignore
return tuple()

@property
def magnetic_species_and_magmoms(self) -> Dict[str, Any]:
Expand Down

0 comments on commit 67e4fbc

Please sign in to comment.