Skip to content

Commit 95484cd

Browse files
committed
less explicit tuple as i'm unable to cast type
1 parent 173fc69 commit 95484cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pymatgen/core/periodic_table.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from pymatgen.util.string import Stringify, formula_double_format
2727

2828
if TYPE_CHECKING:
29-
from collections.abc import Callable, Sequence
29+
from collections.abc import Callable
3030
from typing import Any, Literal
3131

3232
from typing_extensions import Self
@@ -486,7 +486,7 @@ def parse_orbital(orb_str: str) -> str | tuple[int, str, int]:
486486
return orb_str
487487

488488
# Split e_str (e.g. for Fe "[Ar].3d6.4s2" into ["[Ar]", "3d6", "4s2"])
489-
data: Sequence[str | tuple[int, str, int]] = [parse_orbital(s) for s in e_str.split(".")]
489+
data: list = [parse_orbital(s) for s in e_str.split(".")]
490490

491491
# Fully expand core-electron configuration (replace noble gas notation string)
492492
if isinstance(data[0], str):

0 commit comments

Comments
 (0)