We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebc9b2f commit 1d8fdb5Copy full SHA for 1d8fdb5
mypy/config_parser.py
@@ -224,7 +224,6 @@ def _parse_individual_file(
224
if not os.path.exists(config_file):
225
return None
226
227
- config_parser = configparser.RawConfigParser()
228
parser: MutableMapping[str, Any]
229
try:
230
if is_toml(config_file):
@@ -238,8 +237,8 @@ def _parse_individual_file(
238
237
parser = destructure_overrides(toml_data)
239
config_types = toml_config_types
240
else:
241
- config_parser.read(config_file)
242
- parser = config_parser
+ parser = configparser.RawConfigParser()
+ parser.read(config_file)
243
config_types = ini_config_types
244
245
except (tomllib.TOMLDecodeError, configparser.Error, ConfigTOMLValueError) as err:
0 commit comments