Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dos
flow3r firmware
Commits
177f8368
Commit
177f8368
authored
1 year ago
by
Anon
Committed by
schneider
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
py/gr33nhouse: fix typing
parent
a00eebba
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
python_payload/apps/gr33nhouse/manual.py
+6
-0
6 additions, 0 deletions
python_payload/apps/gr33nhouse/manual.py
python_payload/mypystubs/gc.pyi
+3
-0
3 additions, 0 deletions
python_payload/mypystubs/gc.pyi
python_payload/mypystubs/urequests.pyi
+1
-0
1 addition, 0 deletions
python_payload/mypystubs/urequests.pyi
with
10 additions
and
0 deletions
python_payload/apps/gr33nhouse/manual.py
+
6
−
0
View file @
177f8368
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
python_payload/mypystubs/gc.pyi
+
3
−
0
View file @
177f8368
def
mem_free
()
->
int
:
def
mem_free
()
->
int
:
pass
pass
def
collect
()
->
None
:
pass
This diff is collapsed.
Click to expand it.
python_payload/mypystubs/urequests.pyi
+
1
−
0
View file @
177f8368
...
@@ -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
:
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment