Skip to content

Commit

Permalink
[TYPING](ALL): Fix typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PauAndrio committed Oct 17, 2024
1 parent 79bd550 commit 4e60e7c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions biobb_godmd/godmd/godmd_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

"""Module containing the GOdMDPrep class and the command line interface."""
import argparse
from typing import Optional
from pathlib import Path
from biobb_common.generic.biobb_object import BiobbObject
from biobb_common.configuration import settings
Expand Down Expand Up @@ -53,9 +54,10 @@ class GOdMDPrep(BiobbObject):
* schema: http://edamontology.org/EDAM.owl
"""

def __init__(self, input_pdb_orig_path: str, input_pdb_target_path: str,
output_aln_orig_path: str, output_aln_target_path: str,
properties: dict = None, **kwargs) -> None:
properties: Optional[dict] = None, **kwargs) -> None:

properties = properties or {}

Expand Down Expand Up @@ -313,7 +315,7 @@ def launch(self):

# remove temporary folder(s)
self.tmp_files.extend([
self.stage_io_dict.get("unique_dir")
self.stage_io_dict.get("unique_dir", "")
])
self.remove_tmp_files()

Expand All @@ -324,7 +326,7 @@ def launch(self):

def godmd_prep(input_pdb_orig_path: str, input_pdb_target_path: str,
output_aln_orig_path: str, output_aln_target_path: str,
properties: dict = None, **kwargs) -> int:
properties: Optional[dict] = None, **kwargs) -> int:
"""Create :class:`GOdMDPrep <godmd.godmd_prep.GOdMDPrep>`godmd.godmd_prep.GOdMDPrep class and
execute :meth:`launch() <godmd.godmd_prep.GOdMDPrep.launch>` method"""

Expand Down
8 changes: 5 additions & 3 deletions biobb_godmd/godmd/godmd_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

"""Module containing the GOdMDRun class and the command line interface."""
import argparse
from typing import Optional
import shutil
from pathlib import Path
from pathlib import PurePath
Expand Down Expand Up @@ -61,10 +62,11 @@ class GOdMDRun(BiobbObject):
* schema: http://edamontology.org/EDAM.owl
"""

def __init__(self, input_pdb_orig_path: str, input_pdb_target_path: str,
input_aln_orig_path: str, input_aln_target_path: str, input_config_path: str,
output_log_path: str, output_ene_path: str, output_trj_path: str, output_pdb_path: str,
properties: dict = None, **kwargs) -> None:
properties: Optional[dict] = None, **kwargs) -> None:

properties = properties or {}

Expand Down Expand Up @@ -196,7 +198,7 @@ def launch(self):

# remove temporary folder(s)
self.tmp_files.extend([
self.stage_io_dict.get("unique_dir"),
self.stage_io_dict.get("unique_dir", ""),
])
self.remove_tmp_files()

Expand All @@ -208,7 +210,7 @@ def launch(self):
def godmd_run(input_pdb_orig_path: str, input_pdb_target_path: str,
input_aln_orig_path: str, input_aln_target_path: str,
output_log_path: str, output_ene_path: str, output_trj_path: str, output_pdb_path: str,
input_config_path: str = None, properties: dict = None, **kwargs) -> int:
input_config_path: Optional[str] = None, properties: Optional[dict] = None, **kwargs) -> int:
"""Create :class:`GOdMDRun <godmd.godmd_run.GOdMDRun>`godmd.godmd_run.GOdMDRun class and
execute :meth:`launch() <godmd.godmd_run.GOdMDRun.launch>` method"""

Expand Down

0 comments on commit 4e60e7c

Please sign in to comment.