Skip to content

Commit

Permalink
Mypy issues on python 3.9.7 (Chia-Network#8554)
Browse files Browse the repository at this point in the history
* Mypy issues on python 3.9.7

* Typo
  • Loading branch information
mariano54 authored Sep 22, 2021
1 parent a83d165 commit 066a8b2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chia/cmds/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@click.command("start", short_help="Start service groups")
@click.option("-r", "--restart", is_flag=True, type=bool, help="Restart running services")
@click.argument("group", type=click.Choice(all_groups()), nargs=-1, required=True)
@click.argument("group", type=click.Choice(list(all_groups())), nargs=-1, required=True)
@click.pass_context
def start_cmd(ctx: click.Context, restart: bool, group: str) -> None:
import asyncio
Expand Down
2 changes: 1 addition & 1 deletion chia/cmds/stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async def async_stop(root_path: Path, group: str, stop_daemon: bool) -> int:

@click.command("stop", short_help="Stop services")
@click.option("-d", "--daemon", is_flag=True, type=bool, help="Stop daemon")
@click.argument("group", type=click.Choice(all_groups()), nargs=-1, required=True)
@click.argument("group", type=click.Choice(list(all_groups())), nargs=-1, required=True)
@click.pass_context
def stop_cmd(ctx: click.Context, daemon: bool, group: str) -> None:
import asyncio
Expand Down
5 changes: 2 additions & 3 deletions run-py-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ python3 -m venv venv
# shellcheck disable=SC1091
. ./activate
pip3 install ".[dev]"
mypy --install-types

py.test ./tests/blockchain -s -v
py.test ./tests/core -s -v
py.test ./tests/wallet -s -v
py.test ./tests -s -v
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"black",
"aiohttp_cors", # For blackd
"ipython", # For asyncio debugging
"types-setuptools",
]

kwargs = dict(
Expand Down

0 comments on commit 066a8b2

Please sign in to comment.