Skip to content

Commit 81b2a5b

Browse files
add docstr to model_post_init for linting
1 parent 6eeba6e commit 81b2a5b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pymatgen/io/validation/validation.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ class ValidationDoc(EmmetBaseModel):
7777
# )
7878

7979
def model_post_init(self, context: Any) -> None:
80+
"""
81+
Optionally check whether package versions are up to date with PyPI.
82+
83+
Parameters
84+
-----------
85+
context : .Any
86+
Has no effect at present, kept to retain structure of pydantic .BaseModel
87+
"""
8088
if self.check_package_versions:
8189
from check_package_versions import package_version_check
8290

0 commit comments

Comments
 (0)