Skip to content

Commit cd92872

Browse files
committed
remove unnecessary type ignore
1 parent e4d7b3a commit cd92872

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/pymatgen/core/periodic_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def ground_state_term_symbol(self) -> str:
579579
L_symbols = "SPDFGHIKLMNOQRTUVWXYZ"
580580

581581
term_symbols = self.term_symbols
582-
term_symbol_flat = { # type: ignore[var-annotated]
582+
term_symbol_flat: dict = {
583583
term: {
584584
"multiplicity": int(term[0]),
585585
"L": L_symbols.index(term[1]),

src/pymatgen/io/vasp/sets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3460,7 +3460,8 @@ def _combine_kpoints(*kpoints_objects: Kpoints | None) -> Kpoints:
34603460
_kpoints: list[Sequence[Kpoint]] = []
34613461
_weights = []
34623462

3463-
for kpoints_object in filter(None, kpoints_objects): # type: ignore[var-annotated]
3463+
kpoints_object: Kpoints
3464+
for kpoints_object in filter(None, kpoints_objects):
34643465
if kpoints_object.style != Kpoints.supported_modes.Reciprocal:
34653466
raise ValueError("Can only combine kpoints with style=Kpoints.supported_modes.Reciprocal")
34663467
if kpoints_object.labels is None:

0 commit comments

Comments
 (0)