We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce29133 commit 8ab807bCopy full SHA for 8ab807b
src/pymatgen/util/typing.py
@@ -33,16 +33,7 @@
33
SpeciesLike: TypeAlias = str | Element | Species | DummySpecies
34
35
# 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
-)
+CompositionLike: TypeAlias = str | Element | Species | DummySpecies | dict | Composition
46
47
# Entry or any of its subclasses or dicts that can be unpacked into any of them
48
EntryLike: TypeAlias = Union[
0 commit comments