Skip to content

Commit

Permalink
Partial re-application of commit 31ca962. ('Use PEP 585 and 604 type …
Browse files Browse the repository at this point in the history
…annotations in sphinx.locale')
  • Loading branch information
jayaddison committed Apr 9, 2023
1 parent a8c1ab4 commit 78a7c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/locale/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def init(

if language and '_' in language:
# for language having country code (like "de_AT")
languages: Optional[List[str]] = [language, language.split('_')[0]]
languages: list[str] | None = [language, language.split('_')[0]]
elif language:
languages = [language]
else:
Expand Down

0 comments on commit 78a7c61

Please sign in to comment.