Skip to content

Commit e7f0dea

Browse files
committed
Added missing typing
1 parent bc46b67 commit e7f0dea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adafruit_httpserver/mime_type.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class MIMEType:
8080

8181

8282
@staticmethod
83-
def from_file_name(filename):
83+
def from_file_name(filename: str):
8484
"""Return the mime type for the given filename. If not known, return "text/plain"."""
8585
attr_name = filename.split(".")[-1].upper()
8686

adafruit_httpserver/status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class HTTPStatus: # pylint: disable=too-few-public-methods
22
"""HTTP status codes."""
33

4-
def __init__(self, code, text):
4+
def __init__(self, code: int, text: str):
55
"""Define a status code.
66
77
:param int value: Numeric value: 200, 404, etc.

0 commit comments

Comments
 (0)