File tree 2 files changed +12
-7
lines changed
2 files changed +12
-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._config.config]
9
- ignore_errors =True
10
-
11
8
[mypy-pandas._version]
12
9
ignore_errors =True
13
10
Original file line number Diff line number Diff line change 51
51
from collections import namedtuple
52
52
from contextlib import contextmanager
53
53
import re
54
+ from typing import Dict , List
54
55
import warnings
55
56
56
57
DeprecatedOption = namedtuple ('DeprecatedOption' , 'key msg rkey removal_ver' )
57
58
RegisteredOption = namedtuple ('RegisteredOption' ,
58
59
'key defval doc validator cb' )
59
60
60
- _deprecated_options = {} # holds deprecated option metdata
61
- _registered_options = {} # holds registered option metdata
62
- _global_config = {} # holds the current values for registered options
63
- _reserved_keys = ['all' ] # keys which have a special meaning
61
+ # holds deprecated option metdata
62
+ _deprecated_options = {} # type: Dict[str, DeprecatedOption]
63
+
64
+ # holds registered option metdata
65
+ _registered_options = {} # type: Dict[str, RegisteredOption]
66
+
67
+ # holds the current values for registered options
68
+ _global_config = {} # type: Dict[str, str]
69
+
70
+ # keys which have a special meaning
71
+ _reserved_keys = ['all' ] # type: List[str]
64
72
65
73
66
74
class OptionError (AttributeError , KeyError ):
You can’t perform that action at this time.
0 commit comments