Skip to content

Commit f7a9ecd

Browse files
committed
add type hints to DFPTFW
1 parent a0518c3 commit f7a9ecd

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

atomate/vasp/fireworks/core.py

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
sequences of VASP calculations.
44
"""
55
import warnings
6+
from typing import Any, Dict, List, Union
67

78
from fireworks import Firework
89
from pymatgen.core import Structure
@@ -591,20 +592,20 @@ def __init__(
591592
class DFPTFW(Firework):
592593
def __init__(
593594
self,
594-
structure=None,
595-
prev_calc_dir=None,
596-
name="static dielectric",
597-
vasp_cmd=VASP_CMD,
598-
copy_vasp_outputs=True,
599-
lepsilon=True,
600-
db_file=DB_FILE,
601-
parents=None,
602-
user_incar_settings=None,
603-
pass_nm_results=False,
595+
structure: Structure = None,
596+
prev_calc_dir: str = None,
597+
name: str = "static dielectric",
598+
vasp_cmd: str = VASP_CMD,
599+
copy_vasp_outputs: bool = True,
600+
lepsilon: bool = True,
601+
db_file: str = DB_FILE,
602+
parents: Union[Firework, List[Firework]] = None,
603+
user_incar_settings: Dict[str, Any] = None,
604+
pass_nm_results: bool = False,
604605
**kwargs,
605606
):
606607
"""
607-
Static DFPT calculation Firework
608+
Static DFPT calculation Firework
608609
609610
Args:
610611
structure (Structure): Input structure. If copy_vasp_outputs, used only to set the

0 commit comments

Comments
 (0)