summary refs log tree commit diff
path: root/mypy.ini
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-10-06 19:31:39 +0100
committerDavid Robertson <davidr@element.io>2021-10-06 20:25:46 +0100
commitfaa1f101d903ae721faf123976c0efa987df4b85 (patch)
treeb5661a136620a5e5802e921c7291e509ab6fc3e6 /mypy.ini
parenttypeshed has jsonschema stubs (diff)
downloadsynapse-faa1f101d903ae721faf123976c0efa987df4b85.tar.xz
pyOpenSSL has type stubs
since at least here: https://github.com/python/typeshed/pull/5649

Two fixups to keep mypy happy.

The first handles that `get_notAfter` could return None. Before this
would raise a generic `AttributeError`; now it raises a ValueError with
specific message.

The second ensures the callback to `set_verify` returns bool, not
NoneType. (AFAICS this was fine because PyOpenSSL only ever used the
truthiness of the callback's return value.)
Diffstat (limited to 'mypy.ini')
-rw-r--r--mypy.ini3
1 files changed, 0 insertions, 3 deletions
diff --git a/mypy.ini b/mypy.ini
index b379ee0e6d..3adae6b1c1 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -241,9 +241,6 @@ ignore_missing_imports = True
 [mypy-netaddr]
 ignore_missing_imports = True
 
-[mypy-OpenSSL.*]
-ignore_missing_imports = True
-
 [mypy-opentracing]
 ignore_missing_imports = True