Skip to content

Commit 9830b1e

Browse files
committed
add docstrings for package version checking
1 parent 849dc9b commit 9830b1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymatgen/io/validation/validation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747

4848
def is_package_is_up_to_date(package_name: str):
49+
"""check if a package is up-to-date."""
4950
try:
5051
cur_version = version(package_name)
5152
except Exception:
@@ -88,6 +89,7 @@ class ValidationDoc(EmmetBaseModel):
8889
# )
8990

9091
def model_post_init(self, ctx):
92+
"""Warn the user if pymatgen / pymatgen-io-validation is not up-to-date."""
9193
import warnings
9294

9395
pymatgen_is_up_to_date = is_package_is_up_to_date("pymatgen")

0 commit comments

Comments
 (0)