From 107bbff76922cbb933343848f9f14fc7b58bb2f2 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Thu, 15 Jun 2017 03:42:05 -0700 Subject: [PATCH] mypy: Fix likely typeshed warning with readfp. --- bots_api/bot_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots_api/bot_lib.py b/bots_api/bot_lib.py index 8fde0ac..51dc7bb 100644 --- a/bots_api/bot_lib.py +++ b/bots_api/bot_lib.py @@ -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))