Skip to content

Commit d5d0afa

Browse files
return type for VaspValidator.from_vasp_input
1 parent 0b038fe commit d5d0afa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymatgen/io/validation/validation.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
if TYPE_CHECKING:
1414
import os
15+
from typing_extensions import Self
1516

1617
DEFAULT_CHECKS = [CheckStructureProperties, CheckPotcar, CheckCommonErrors, CheckKpointsKspacing, CheckIncar]
1718

@@ -43,7 +44,7 @@ def from_vasp_input(
4344
vasp_files: VaspFiles | None = None,
4445
fast: bool = False,
4546
check_potcar: bool = True,
46-
):
47+
) -> Self:
4748
"""
4849
Validate a VASP calculation from VASP files or their object representation.
4950

0 commit comments

Comments
 (0)