Skip to content

Commit f74f864

Browse files
authored
STYLE: fix pylint redefined-outer-name warning for file (#49844)
* addressed pylint redfined-outer-name warning in files * addressed pylint redefined-outer-name warning in files * addressed pylint redefined_out_name warning in datetimes.py * addressed pylint redefined_out_name warning in datetimes.py * updated pylint fix by renaming import timezones to libtimezones
1 parent 50a8667 commit f74f864

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/tools/datetimes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
iNaT,
2727
nat_strings,
2828
parsing,
29-
timezones,
29+
timezones as libtimezones,
3030
)
3131
from pandas._libs.tslibs.parsing import (
3232
DateParseError,
@@ -402,7 +402,7 @@ def _convert_listlike_datetimes(
402402
# NB: this must come after unit transformation
403403
orig_arg = arg
404404
try:
405-
arg, _ = maybe_convert_dtype(arg, copy=False, tz=timezones.maybe_get_tz(tz))
405+
arg, _ = maybe_convert_dtype(arg, copy=False, tz=libtimezones.maybe_get_tz(tz))
406406
except TypeError:
407407
if errors == "coerce":
408408
npvalues = np.array(["NaT"], dtype="datetime64[ns]").repeat(len(arg))

0 commit comments

Comments
 (0)