Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b2167e4

Browse files
committedJun 5, 2022
TYP: remove mypy ignore from localization.py
1 parent df8acf4 commit b2167e4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎pandas/_config/localization.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ def set_locale(
4545
locale.setlocale(lc_var, new_locale)
4646
normalized_locale = locale.getlocale()
4747
if all(x is not None for x in normalized_locale):
48-
# error: Argument 1 to "join" of "str" has incompatible type
49-
# "Tuple[Optional[str], Optional[str]]"; expected "Iterable[str]"
50-
yield ".".join(normalized_locale) # type: ignore[arg-type]
48+
yield ".".join(str(x) for x in normalized_locale)
5149
else:
5250
yield new_locale
5351
finally:

0 commit comments

Comments
 (0)
Please sign in to comment.