Skip to content

Commit

Permalink
remove unnecessary type ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Feb 1, 2025
1 parent e4d7b3a commit bdea380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/pymatgen/core/periodic_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def ground_state_term_symbol(self) -> str:
L_symbols = "SPDFGHIKLMNOQRTUVWXYZ"

term_symbols = self.term_symbols
term_symbol_flat = { # type: ignore[var-annotated]
term_symbol_flat: dict = {
term: {
"multiplicity": int(term[0]),
"L": L_symbols.index(term[1]),
Expand Down
1 change: 1 addition & 0 deletions src/pymatgen/io/vasp/sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -3460,6 +3460,7 @@ def _combine_kpoints(*kpoints_objects: Kpoints | None) -> Kpoints:
_kpoints: list[Sequence[Kpoint]] = []
_weights = []

kpoints_object: Kpoints
for kpoints_object in filter(None, kpoints_objects): # type: ignore[var-annotated]
if kpoints_object.style != Kpoints.supported_modes.Reciprocal:
raise ValueError("Can only combine kpoints with style=Kpoints.supported_modes.Reciprocal")
Expand Down

0 comments on commit bdea380

Please sign in to comment.