PicoW webserver add type annotation

This commit is contained in:
Dan Halbert 2023-01-18 10:57:10 -05:00 committed by GitHub
parent 42688c4ff3
commit 6961a89266
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@ def base(request: HTTPRequest): # pylint: disable=unused-argument
# if a button is pressed on the site
@server.route("/", method=HTTPMethod.POST)
def buttonpress(request):
def buttonpress(request: HTTPRequest):
# get the raw text
raw_text = request.raw_request.decode("utf8")
print(raw_text)