1
0
mirror of https://github.com/ihabunek/toot synced 2024-12-22 15:06:05 +01:00

Fix broken build

This commit is contained in:
Ivan Habunek 2024-04-14 09:05:09 +02:00
parent 927fdc3026
commit 87acfb8ef4
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
2 changed files with 2 additions and 2 deletions

View File

@ -514,7 +514,7 @@ def from_dict_list(cls: Type[T], data: t.List[Data]) -> t.List[T]:
return [from_dict(cls, x) for x in data]
def _get_default_value(field: dataclasses.Field[Any]):
def _get_default_value(field: dataclasses.Field):
if field.default is not dataclasses.MISSING:
return field.default

View File

@ -173,5 +173,5 @@ LANGUAGES = {
}
def language_name(code):
def language_name(code: str) -> str:
return LANGUAGES.get(code, code)