Skip to content

Commit

Permalink
remove future annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed Dec 4, 2024
1 parent 68a955e commit 1c4c9f9
Show file tree
Hide file tree
Showing 22 changed files with 21 additions and 42 deletions.
5 changes: 0 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ repos:
hooks:
- id: autoflake

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.9.1
hooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions notebooks/2013-01-01-Molecule.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions notebooks/2013-01-01-Units.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19 pymatgen-analysis-diffusion\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19 pymatgen-analysis-diffusion"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19 pymatgen-analysis-diffusion\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19 pymatgen-analysis-diffusion"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19 phonopy\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19 phonopy"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/2017-04-03-Slab generation and Wulff shape.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"outputs": [],
"source": [
"# Import the necessary tools for making a Wulff shape\n",
"from __future__ import annotations\n",
"\n",
"\n",
"from pymatgen.analysis.wulff import WulffShape\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion notebooks/2018-07-24-Adsorption on solid surfaces.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"outputs": [],
"source": [
"# Import statements\n",
"from __future__ import annotations\n",
"\n",
"\n",
"from matplotlib import pyplot as plt\n",
"from mp_api.client import MPRester\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"outputs": [],
"source": [
"# Imports we need for running structure prediction\n",
"from __future__ import annotations\n",
"\n",
"\n",
"from pprint import pprint\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"outputs": [],
"source": [
"# Imports we need for generating dopant suggestions\n",
"from __future__ import annotations\n",
"\n",
"\n",
"from pprint import pprint\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
3 changes: 1 addition & 2 deletions notebooks/2021-5-12-Explanation of Corrections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
"outputs": [],
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"from __future__ import annotations"
"# !pip install pymatgen==2022.7.19"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import annotations\n",
"\n",
"\n",
"!pip install dash crystal-toolkit"
]
Expand Down
3 changes: 1 addition & 2 deletions notebooks/2023-03-10-Plotting a Pourbaix Diagram-new.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@
"source": [
"# Uncomment the subsequent lines in this cell to install dependencies for Google Colab.\n",
"# !pip install pymatgen==2022.7.19\n",
"# !pip install mp-api\n",
"from __future__ import annotations"
"# !pip install mp-api"
]
},
{
Expand Down

0 comments on commit 1c4c9f9

Please sign in to comment.