Skip to content

Commit

Permalink
Fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
ihabunek committed Apr 14, 2024
1 parent 927fdc3 commit 87acfb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toot/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion toot/utils/language.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,5 @@
}


def language_name(code):
def language_name(code: str) -> str:
return LANGUAGES.get(code, code)

0 comments on commit 87acfb8

Please sign in to comment.