refactor: explicitly define parameter types
Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
parent
20b8bf2432
commit
8b97a60a34
2 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
import re
|
||||
|
||||
|
||||
def humanize_tags_from_json(value, default):
|
||||
def humanize_tags_from_json(value: str, default: str):
|
||||
if value != "":
|
||||
output = str()
|
||||
tags = value.split()
|
||||
|
@ -14,7 +14,7 @@ def humanize_tags_from_json(value, default):
|
|||
return default
|
||||
|
||||
|
||||
def format_rating(value):
|
||||
def format_rating(value: str):
|
||||
match value:
|
||||
case "g":
|
||||
# Negative Squared Latin Capital Letter G
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue