mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-29 18:55:07 +00:00
fixing some missing types
This commit is contained in:
parent
c270ababd9
commit
f46909ecfb
@ -44,7 +44,7 @@ class ServiceTaskDelegate:
|
|||||||
return value
|
return value
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_message_for_status(code):
|
def get_message_for_status(code: int) -> str:
|
||||||
"""Given a code like 404, return a string like 'The requested resource was not found.'"""
|
"""Given a code like 404, return a string like 'The requested resource was not found.'"""
|
||||||
msg = f"HTTP Status Code {code}."
|
msg = f"HTTP Status Code {code}."
|
||||||
if code == 301:
|
if code == 301:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user