File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,6 @@ follow_imports=silent
55[mypy-pandas.conftest,pandas.tests.*]
66ignore_errors =True
77
8- [mypy-pandas._version]
9- ignore_errors =True
10-
118[mypy-pandas.compat]
129ignore_errors =True
1310
Original file line number Diff line number Diff line change 1212import re
1313import subprocess
1414import sys
15+ from typing import Callable , Dict
1516
1617from pandas .compat import PY3
1718
@@ -48,12 +49,11 @@ class NotThisMethod(Exception):
4849 pass
4950
5051
51- LONG_VERSION_PY = {}
52- HANDLERS = {}
52+ HANDLERS = {} # type: Dict[str, Dict[str, Callable]]
5353
5454
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 :
5757 if vcs not in HANDLERS :
5858 HANDLERS [vcs ] = {}
5959 HANDLERS [vcs ][method ] = f
You can’t perform that action at this time.
0 commit comments