Skip to content

Commit d438a04

Browse files
authored
Update i18n.py
1 parent 063c79d commit d438a04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i18n.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get(self, key: str, default: str | None = None) -> str | None:
3636
cur = cur[part]
3737
else:
3838
return default
39-
if isinstance(cur, (str, int, float)):
39+
if isinstance(cur, str | int | float):
4040
return str(cur)
4141
return default
4242

0 commit comments

Comments
 (0)