CederGroupHub / chgnet

Pretrained universal neural network potential for charge-informed atomistic modeling https://chgnet.lbl.gov
https://doi.org/10.1038/s42256-023-00716-3
Other
226 stars 61 forks source link

Use future type annotations #7

Closed janosh closed 1 year ago

janosh commented 1 year ago

Using the side-effect from __future__ import annotations, Python backports support for the 3.10 type annotation syntax all the way to 3.7.

janosh commented 1 year ago

This line isort.required-imports = ["from __future__ import annotations"] in pyproject.toml makes ruff auto-add this import at the start of every file. This line and all the imports it adds can be removed once the minimum supported Python version for chgnet is 3.10.