Skip to content

Commit

Permalink
Fix Any type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
ElliottKasoar committed Mar 15, 2024
1 parent f433091 commit 4da114a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions janus_core/geom_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def optimize( # pylint: disable=too-many-arguments
write_results: bool = False,
write_kwargs: Optional[ASEWriteArgs] = None,
traj_kwargs: Optional[ASEWriteArgs] = None,
log_kwargs: Optional[dict[str, any]] = None,
log_kwargs: Optional[dict[str, Any]] = None,
) -> Atoms:
"""
Optimize geometry of input structure.
Expand Down Expand Up @@ -58,7 +58,7 @@ def optimize( # pylint: disable=too-many-arguments
traj_kwargs : Optional[ASEWriteArgs]
Keyword arguments to pass to ase.io.write to save optimization trajectory.
Must include "filename" keyword. Default is {}.
log_kwargs : Optional[dict[str, any]]
log_kwargs : Optional[dict[str, Any]]
Keyword arguments to pass to `config_logger`. Default is {}.
Returns
Expand Down
6 changes: 3 additions & 3 deletions janus_core/single_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class SinglePoint:
Keyword arguments to pass to ase.io.read. Default is {}.
calc_kwargs : Optional[dict[str, Any]]
Keyword arguments to pass to the selected calculator. Default is {}.
log_kwargs : Optional[dict[str, any]]
log_kwargs : Optional[dict[str, Any]]
Keyword arguments to pass to `config_logger`. Default is {}.
Attributes
Expand Down Expand Up @@ -82,7 +82,7 @@ def __init__(
device: Devices = "cpu",
read_kwargs: Optional[ASEReadArgs] = None,
calc_kwargs: Optional[dict[str, Any]] = None,
log_kwargs: Optional[dict[str, any]] = None,
log_kwargs: Optional[dict[str, Any]] = None,
) -> None:
"""
Read the structure being simulated and attach an MLIP calculator.
Expand All @@ -107,7 +107,7 @@ def __init__(
Keyword arguments to pass to ase.io.read. Default is {}.
calc_kwargs : Optional[dict[str, Any]]
Keyword arguments to pass to the selected calculator. Default is {}.
log_kwargs : Optional[dict[str, any]]
log_kwargs : Optional[dict[str, Any]]
Keyword arguments to pass to `config_logger`. Default is {}.
"""
if struct and struct_path:
Expand Down

0 comments on commit 4da114a

Please sign in to comment.