From 03f5e9110b39a336df6887079b41d492d41d53b3 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Wed, 15 Nov 2017 08:57:50 -0800 Subject: [PATCH] mypy: Add comment on ConfigParser.readfp 'type: ignore'. readfp remains valid but is deprecated, so is not in the python3 stubs. --- zulip_bots/zulip_bots/lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zulip_bots/zulip_bots/lib.py b/zulip_bots/zulip_bots/lib.py index d8cb0bc..a51b81f 100644 --- a/zulip_bots/zulip_bots/lib.py +++ b/zulip_bots/zulip_bots/lib.py @@ -125,7 +125,7 @@ class ExternalBotHandler(object): config = configparser.ConfigParser() try: with open(conf_file_path) as conf: - config.readfp(conf) # type: ignore + config.readfp(conf) # type: ignore # readfp->read_file in python 3, so not in stubs except IOError: if optional: return dict()