mirror of
https://github.com/ihabunek/toot
synced 2024-12-22 15:06:05 +01:00
Fix broken build
This commit is contained in:
parent
927fdc3026
commit
87acfb8ef4
@ -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
|
||||
|
||||
|
@ -173,5 +173,5 @@ LANGUAGES = {
|
||||
}
|
||||
|
||||
|
||||
def language_name(code):
|
||||
def language_name(code: str) -> str:
|
||||
return LANGUAGES.get(code, code)
|
||||
|
Loading…
Reference in New Issue
Block a user