mypy: Add comment on ConfigParser.readfp 'type: ignore'.
readfp remains valid but is deprecated, so is not in the python3 stubs.
This commit is contained in:
parent
761e3e5855
commit
03f5e9110b
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue