Skip to content
This repository was archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
from typing_extensions import Literal (py3.7 compatibility)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgbaird committed Jun 20, 2022
1 parent fc7554c commit 2a1c807
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ install_requires =
pymatgen
matminer
pybtex
typing-extensions


[options.packages.find]
Expand Down
3 changes: 2 additions & 1 deletion src/mp_time_split/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@
from hashlib import md5
from os import environ, path
from pathlib import Path
from typing import List, Literal, Optional, Tuple, Union
from typing import List, Optional, Tuple, Union
from urllib.request import urlretrieve

import pandas as pd
import pybtex.errors
from matminer.utils.io import load_dataframe_from_json
from typing_extensions import Literal

from mp_time_split import __version__
from mp_time_split.utils.data import DUMMY_SNAPSHOT_NAME, SNAPSHOT_NAME
Expand Down
3 changes: 2 additions & 1 deletion src/mp_time_split/utils/api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from typing import List, Literal, Optional, Tuple, Union
from typing import List, Optional, Tuple, Union

import pandas as pd
from mp_api import MPRester
from mp_api.core.client import DEFAULT_API_KEY
from tqdm import tqdm
from typing_extensions import Literal

from mp_time_split.utils.data import get_discovery_dict, noble, radioactive

Expand Down

0 comments on commit 2a1c807

Please sign in to comment.