From 02ac6df9b8f70d13ccd23040818afb86d8b17f36 Mon Sep 17 00:00:00 2001 From: Matthew Horton Date: Tue, 29 Mar 2022 13:25:34 -0700 Subject: [PATCH] Change annotation back to older style --- pymatgen/apps/battery/battery_abc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pymatgen/apps/battery/battery_abc.py b/pymatgen/apps/battery/battery_abc.py index 611718cc7bb..6f922d843b7 100644 --- a/pymatgen/apps/battery/battery_abc.py +++ b/pymatgen/apps/battery/battery_abc.py @@ -11,6 +11,7 @@ from collections.abc import Sequence from dataclasses import dataclass +from typing import Tuple from monty.json import MSONable from scipy.constants import N_A @@ -134,7 +135,7 @@ class AbstractElectrode(Sequence, MSONable): framework_formula: The compositions of one formula unit of the host material """ - voltage_pairs: tuple[AbstractVoltagePair, ...] + voltage_pairs: Tuple[AbstractVoltagePair, ...] working_ion_entry: ComputedEntry framework_formula: str # should be made into Composition whenever the as_dict and from dict are fixed