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): ...@@ -30,6 +30,9 @@ class ViewState(Enum):
class ManualInputView(BaseView): class ManualInputView(BaseView):
current_petal: Optional[int]
wait_timer: Optional[int]
def __init__(self) -> None: def __init__(self) -> None:
self.input = InputController() self.input = InputController()
self.vm = None self.vm = None
...@@ -143,6 +146,9 @@ class ManualInputView(BaseView): ...@@ -143,6 +146,9 @@ class ManualInputView(BaseView):
print(f"No app found for seed {self.flow3r_seed}!") print(f"No app found for seed {self.flow3r_seed}!")
self.state = ViewState.SEED_NOT_FOUND self.state = ViewState.SEED_NOT_FOUND
else: else:
if self.vm is None:
raise RuntimeError("vm is None")
app = res.json() app = res.json()
self.vm.push( self.vm.push(
ConfirmationView( ConfirmationView(
......
def mem_free() -> int: def mem_free() -> int:
pass pass
def collect() -> None:
pass
...@@ -3,6 +3,7 @@ from typing import Any ...@@ -3,6 +3,7 @@ from typing import Any
class Response: class Response:
text: str text: str
content: bytes content: bytes
status_code: int
def close(self) -> None: ... def close(self) -> None: ...
def json(self) -> Any: ... 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