File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
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._version]
9
- ignore_errors =True
10
-
11
8
[mypy-pandas.compat]
12
9
ignore_errors =True
13
10
Original file line number Diff line number Diff line change 12
12
import re
13
13
import subprocess
14
14
import sys
15
+ from typing import Callable , Dict
15
16
16
17
from pandas .compat import PY3
17
18
@@ -48,12 +49,11 @@ class NotThisMethod(Exception):
48
49
pass
49
50
50
51
51
- LONG_VERSION_PY = {}
52
- HANDLERS = {}
52
+ HANDLERS = {} # type: Dict[str, Dict[str, Callable]]
53
53
54
54
55
- def register_vcs_handler (vcs , method ) : # decorator
56
- def decorate (f ) :
55
+ def register_vcs_handler (vcs : str , method : str ) -> Callable : # decorator
56
+ def decorate (f : Callable ) -> Callable :
57
57
if vcs not in HANDLERS :
58
58
HANDLERS [vcs ] = {}
59
59
HANDLERS [vcs ][method ] = f
You can’t perform that action at this time.
0 commit comments