Skip to content

Commit

Permalink
chore: add type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Dec 2, 2024
1 parent ce591c4 commit 4ce127d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate_web/payments/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def request(

return response.json()

def get_language(self):
def get_language(self) -> str:
language = get_language().lower().replace("_", "-").split("-")[0]
if language not in THEPAY_LANGUAGES:
return "en"
Expand Down

0 comments on commit 4ce127d

Please sign in to comment.