Skip to content

Commit c917be4

Browse files
committed
mypy
1 parent d20f895 commit c917be4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

mp_api/client/core/settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@
99

1010
from mp_api.client import __file__ as root_dir
1111

12-
DEFAULT_THERMOTYPE = ThermoType("GGA_GGA+U_R2SCAN")
13-
DEFAULT_THERMOTYPE_CRITERIA = {"thermo_types": [DEFAULT_THERMOTYPE.value]}
12+
DEFAULT_THERMOTYPE: ThermoType = ThermoType("GGA_GGA+U_R2SCAN")
13+
DEFAULT_THERMOTYPE_CRITERIA: dict[str, list[str]] = {
14+
"thermo_types": [DEFAULT_THERMOTYPE.value]
15+
}
1416

1517
PMG_SETTINGS = _load_pmg_settings()
1618
_NUM_PARALLEL_REQUESTS = min(PMG_SETTINGS.get("MPRESTER_NUM_PARALLEL_REQUESTS", 4), 4)

mp_api/client/mprester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ def _get_cohesive_energy(
15901590
def get_stability(
15911591
self,
15921592
entries: list[ComputedEntry | ComputedStructureEntry | PDEntry],
1593-
thermo_type: str | ThermoType = DEFAULT_THERMOTYPE,
1593+
thermo_type: ThermoType | str = DEFAULT_THERMOTYPE,
15941594
) -> list[dict[str, Any]] | None:
15951595
"""Get the energy above hull of a list of entries.
15961596

0 commit comments

Comments
 (0)