Skip to content

Commit

Permalink
fix: type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Apr 23, 2024
1 parent 725a53a commit cb874b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion autonomy/cli/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _validate_packages_path(path: Optional[Path] = None) -> Path:
)


def _validate_open_aea_dir(path: Optional[Path] = None) -> None:
def _validate_open_aea_dir(path: Optional[Path] = None) -> Path:
"""Validate open-aea directory."""
path = Path(path or Path(AEA_DIR).parent).resolve()
for child in ("aea", "plugins", "setup.py"):
Expand Down
4 changes: 2 additions & 2 deletions autonomy/deploy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,8 +751,8 @@ class BaseDeploymentGenerator(abc.ABC): # pylint: disable=too-many-instance-att
dev_mode: bool
use_tm_testnet_setup: bool

packages_dir: Path
open_aea_dir: Path
packages_dir: Optional[Path]
open_aea_dir: Optional[Path]
resources: Resources

def __init__( # pylint: disable=too-many-arguments
Expand Down
4 changes: 2 additions & 2 deletions autonomy/deploy/generators/docker_compose/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def build_agent_config( # pylint: disable=too-many-arguments,too-many-locals
network_name: str,
network_address: str,
dev_mode: bool = False,
package_dir: Path = DEFAULT_PACKAGES_PATH,
open_aea_dir: Path = DEFAULT_OPEN_AEA_DIR,
package_dir: Optional[Path] = None,
open_aea_dir: Optional[Path] = None,
agent_ports: Optional[Dict[int, int]] = None,
extra_volumes: Optional[Dict[str, str]] = None,
resources: Optional[Resources] = None,
Expand Down

0 comments on commit cb874b7

Please sign in to comment.