mypy: Fix likely typeshed warning with readfp.

This commit is contained in:
Tim Abbott 2017-06-15 03:42:05 -07:00
parent 9c5353cc3d
commit 5f299328b0
1 changed files with 1 additions and 1 deletions

View File

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