Skip to content

Commit 6bb8678

Browse files
committed
fix test and mypy
1 parent 458e2cd commit 6bb8678

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/idom/cli.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ def install(packages: List[str]) -> None:
2525
return None
2626

2727

28-
@client.command()
29-
def rebuild(clean: bool = False) -> None:
30-
"""Rebuild the client (keeps currently installed packages by default)"""
31-
manage_client.build([], clean_build=clean)
32-
33-
3428
@client.command()
3529
def restore() -> None:
3630
"""Return to a fresh install of Ithe client"""

src/idom/client/manage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from logging import getLogger
55
from pathlib import Path
66
from tempfile import TemporaryDirectory
7-
from typing import Dict, Iterable, List, Sequence, Set, Union
7+
from typing import Dict, Iterable, List, Sequence, Set, Union, cast
88

99
from idom.config import IDOM_CLIENT_WEB_MODULE_BASE_URL
1010

@@ -65,7 +65,7 @@ def web_module_path(package_name: str, must_exist: bool = False) -> Path:
6565

6666
def dependency_versions() -> Dict[str, str]:
6767
package_json = _private.build_dir() / "package.json"
68-
return json.loads(package_json.read_text())["dependencies"]
68+
return cast(Dict[str, str], json.loads(package_json.read_text())["dependencies"])
6969

7070

7171
def restore() -> None:

0 commit comments

Comments
 (0)