mypy: Fix likely typeshed warning with readfp.
This commit is contained in:
parent
6e44c1bb88
commit
107bbff769
|
@ -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))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue