Skip to content

Commit 74f7e11

Browse files
authored
Merge pull request #2386 from adafruit/dhalbert-patch-1
PicoW webserver add type annotation
2 parents 42688c4 + 6961a89 commit 74f7e11

File tree

1 file changed

+1
-1
lines changed
  • PicoW_CircuitPython_HTTP_Server

1 file changed

+1
-1
lines changed

PicoW_CircuitPython_HTTP_Server/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def base(request: HTTPRequest): # pylint: disable=unused-argument
149149

150150
# if a button is pressed on the site
151151
@server.route("/", method=HTTPMethod.POST)
152-
def buttonpress(request):
152+
def buttonpress(request: HTTPRequest):
153153
# get the raw text
154154
raw_text = request.raw_request.decode("utf8")
155155
print(raw_text)

0 commit comments

Comments
 (0)