Skip to content
Snippets Groups Projects
Commit 177f8368 authored by Anon's avatar Anon Committed by schneider
Browse files

py/gr33nhouse: fix typing

parent a00eebba
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,9 @@ class ViewState(Enum):
class ManualInputView(BaseView):
current_petal: Optional[int]
wait_timer: Optional[int]
def __init__(self) -> None:
self.input = InputController()
self.vm = None
......@@ -143,6 +146,9 @@ class ManualInputView(BaseView):
print(f"No app found for seed {self.flow3r_seed}!")
self.state = ViewState.SEED_NOT_FOUND
else:
if self.vm is None:
raise RuntimeError("vm is None")
app = res.json()
self.vm.push(
ConfirmationView(
......
def mem_free() -> int:
pass
def collect() -> None:
pass
......@@ -3,6 +3,7 @@ from typing import Any
class Response:
text: str
content: bytes
status_code: int
def close(self) -> None: ...
def json(self) -> Any: ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment