File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ follow_imports=silent
5
5
[mypy-pandas.conftest,pandas.tests.*]
6
6
ignore_errors =True
7
7
8
- [mypy-pandas.compat]
9
- ignore_errors =True
10
-
11
8
[mypy-pandas.core.api]
12
9
ignore_errors =True
13
10
Original file line number Diff line number Diff line change 11
11
* platform checker
12
12
"""
13
13
import platform
14
- import re
15
14
import struct
16
15
import sys
16
+ from typing import Pattern
17
17
18
18
PY36 = sys .version_info >= (3 , 6 )
19
19
PY37 = sys .version_info >= (3 , 7 )
@@ -74,13 +74,7 @@ def raise_with_traceback(exc, traceback=Ellipsis):
74
74
raise exc .with_traceback (traceback )
75
75
76
76
77
- # In Python 3.7, the private re._pattern_type is removed.
78
- # Python 3.5+ have typing.re.Pattern
79
- if PY36 :
80
- import typing
81
- re_type = typing .re .Pattern
82
- else :
83
- re_type = type (re .compile ('' ))
77
+ re_type = Pattern
84
78
85
79
86
80
# https://github.com/pandas-dev/pandas/pull/9123
You can’t perform that action at this time.
0 commit comments