Skip to content

Commit 2a432cc

Browse files
simonjayhawkinsKevin D Smith
authored and
Kevin D Smith
committed
TYP: check_untyped_defs compat.pickle_compat (pandas-dev#36884)
1 parent 7e680a6 commit 2a432cc

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pandas/compat/pickle_compat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def patch_pickle():
274274
"""
275275
orig_loads = pkl.loads
276276
try:
277-
pkl.loads = loads
277+
setattr(pkl, "loads", loads)
278278
yield
279279
finally:
280-
pkl.loads = orig_loads
280+
setattr(pkl, "loads", orig_loads)

setup.cfg

-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ check_untyped_defs=False
136136
[mypy-pandas._version]
137137
check_untyped_defs=False
138138

139-
[mypy-pandas.compat.pickle_compat]
140-
check_untyped_defs=False
141-
142139
[mypy-pandas.core.apply]
143140
check_untyped_defs=False
144141

0 commit comments

Comments
 (0)