Skip to content

Commit 8ab807b

Browse files
committed
fix: typing test?
1 parent ce29133 commit 8ab807b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/pymatgen/util/typing.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,7 @@
3333
SpeciesLike: TypeAlias = str | Element | Species | DummySpecies
3434

3535
# Things that can be cast to a Composition
36-
CompositionLike: TypeAlias = (
37-
str
38-
| Element
39-
| Species
40-
| DummySpecies
41-
| dict[str, int | float]
42-
| dict[Element | Species | DummySpecies, int | float]
43-
| dict[SpeciesLike, int | float]
44-
| Composition
45-
)
36+
CompositionLike: TypeAlias = str | Element | Species | DummySpecies | dict | Composition
4637

4738
# Entry or any of its subclasses or dicts that can be unpacked into any of them
4839
EntryLike: TypeAlias = Union[

0 commit comments

Comments
 (0)