We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc46b67 commit e7f0deaCopy full SHA for e7f0dea
adafruit_httpserver/mime_type.py
@@ -80,7 +80,7 @@ class MIMEType:
80
81
82
@staticmethod
83
- def from_file_name(filename):
+ def from_file_name(filename: str):
84
"""Return the mime type for the given filename. If not known, return "text/plain"."""
85
attr_name = filename.split(".")[-1].upper()
86
adafruit_httpserver/status.py
@@ -1,7 +1,7 @@
1
class HTTPStatus: # pylint: disable=too-few-public-methods
2
"""HTTP status codes."""
3
4
- def __init__(self, code, text):
+ def __init__(self, code: int, text: str):
5
"""Define a status code.
6
7
:param int value: Numeric value: 200, 404, etc.
0 commit comments