mirror of https://github.com/zulip/zulip.git
generate_secrets: Silence mypy error with configparser.
See https://github.com/python/typeshed/issues/307.
This commit is contained in:
parent
eb71173be3
commit
f7ce5fc179
|
@ -37,7 +37,7 @@ def get_old_conf(output_filename):
|
||||||
if not os.path.exists(output_filename):
|
if not os.path.exists(output_filename):
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
secrets_file = six.moves.configparser.RawConfigParser()
|
secrets_file = six.moves.configparser.RawConfigParser() # type: ignore # https://github.com/python/typeshed/issues/307
|
||||||
secrets_file.read(output_filename)
|
secrets_file.read(output_filename)
|
||||||
|
|
||||||
def get_secret(key):
|
def get_secret(key):
|
||||||
|
|
Loading…
Reference in New Issue