@@ -79,7 +79,7 @@ def match_files(paths: List[str]) -> List[str]:
79
79
# sufficient, and we don't have to do anything here. This table
80
80
# exists to specify types for values initialized to None or container
81
81
# types.
82
- ini_config_types = {
82
+ ini_type_converters = {
83
83
'python_version' : parse_version ,
84
84
'strict_optional_whitelist' : lambda s : s .split (),
85
85
'custom_typing_module' : str ,
@@ -100,7 +100,7 @@ def match_files(paths: List[str]) -> List[str]:
100
100
} # type: Final
101
101
102
102
103
- toml_type_conversors = {
103
+ toml_type_converters = {
104
104
'python_version' : parse_version ,
105
105
'custom_typeshed_dir' : expand_path ,
106
106
'mypy_path' : lambda l : [expand_path (p ) for p in l ],
@@ -172,8 +172,8 @@ def parse_toml_config_file(options: Options, filename: str,
172
172
(filename , key ),
173
173
file = stderr )
174
174
else :
175
- if key in toml_type_conversors :
176
- value = toml_type_conversors [key ](value ) # type: ignore
175
+ if key in toml_type_converters :
176
+ value = toml_type_converters [key ](value ) # type: ignore
177
177
setattr (options , key , value )
178
178
179
179
# Read the per-module override sub-tables.
@@ -196,8 +196,8 @@ def parse_toml_config_file(options: Options, filename: str,
196
196
(key , subkey ), file = stderr )
197
197
continue
198
198
199
- if subkey in toml_type_conversors :
200
- subvalue = toml_type_conversors [subkey ](subvalue ) # type: ignore
199
+ if subkey in toml_type_converters :
200
+ subvalue = toml_type_converters [subkey ](subvalue ) # type: ignore
201
201
values [subkey ] = subvalue
202
202
203
203
options .per_module_options [glob ] = values
@@ -276,8 +276,8 @@ def parse_ini_section(prefix: str, template: Options,
276
276
for key in section :
277
277
invert = False
278
278
options_key = key
279
- if key in ini_config_types :
280
- ct = ini_config_types [key ]
279
+ if key in ini_type_converters :
280
+ ct = ini_type_converters [key ]
281
281
else :
282
282
dv = None
283
283
# We have to keep new_semantic_analyzer in Options
0 commit comments