mypy: Fix likely typeshed warning with readfp.

This commit is contained in:
Tim Abbott 2017-06-15 03:42:05 -07:00
parent 6e44c1bb88
commit 107bbff769

View file

@ -102,7 +102,7 @@ class BotHandlerApi(object):
our_dir, '..', 'bots', bot_name, bot_name + '.conf')) our_dir, '..', 'bots', bot_name, bot_name + '.conf'))
section = section or bot_name section = section or bot_name
config = configparser.ConfigParser() config = configparser.ConfigParser()
config.readfp(open(conf_file_path)) config.readfp(open(conf_file_path)) # type: ignore
return dict(config.items(section)) return dict(config.items(section))