mirror of https://github.com/zulip/zulip.git
mypy: Fix likely typeshed warning with readfp.
This commit is contained in:
parent
9c5353cc3d
commit
5f299328b0
|
@ -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 New Issue