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 86edd12 commit 8a821c0Copy full SHA for 8a821c0
mypy/config_parser.py
@@ -598,10 +598,9 @@ def parse_section(
598
v = None
599
try:
600
if ct is bool:
601
- if isinstance(section, dict):
602
- v = convert_to_boolean(section.get(key))
603
- else:
604
- v = section.getboolean(key) # type: ignore[attr-defined] # Until better stub
+ # ConfigParser has an equivalent (but poorly-stubbed) getboolean method,
+ # which we do not use. https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.getboolean
+ v = convert_to_boolean(section.get(key))
605
if invert:
606
v = not v
607
elif callable(ct):
0 commit comments