From 9f1a0ecaeb52e3151df68df8c001ad3f0e1a16dc Mon Sep 17 00:00:00 2001 From: Vaibhav Vishal Date: Thu, 4 Apr 2019 19:38:15 +0530 Subject: [PATCH 1/2] Remove the module from mypy.ini --- mypy.ini | 3 --- 1 file changed, 3 deletions(-) diff --git a/mypy.ini b/mypy.ini index 230c3e58d65f1..62a3d535b561a 100644 --- a/mypy.ini +++ b/mypy.ini @@ -11,9 +11,6 @@ ignore_errors=True [mypy-pandas.compat.numpy.function] ignore_errors=True -[mypy-pandas.compat.pickle_compat] -ignore_errors=True - [mypy-pandas.core.accessor] ignore_errors=True From c6013eba7f874e1ca4827caa8eb523613b433138 Mon Sep 17 00:00:00 2001 From: Vaibhav Vishal Date: Thu, 4 Apr 2019 23:51:51 +0530 Subject: [PATCH 2/2] Ignore type hint for class Unpickler for now, because stdlib just doesn't have annotations for pickle yet --- pandas/compat/pickle_compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/compat/pickle_compat.py b/pandas/compat/pickle_compat.py index 82e54d2d7239b..037c49fd9e683 100644 --- a/pandas/compat/pickle_compat.py +++ b/pandas/compat/pickle_compat.py @@ -138,7 +138,7 @@ def load_reduce(self): # our Unpickler sub-class to override methods and some dispatcher # functions for compat -class Unpickler(pkl._Unpickler): +class Unpickler(pkl._Unpickler): # type: ignore def find_class(self, module, name): # override superclass