diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bb55131..2690a6f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,10 +24,9 @@ jobs: run: | pip install . pip install mypy pytest - mypy --install-types --non-interactive - name: Check types run: | - mypy --ignore-missing-imports jetforce/ + mypy --ignore-missing-imports --install-types --non-interactive jetforce/ - name: Run tests run: | pytest -v tests/ diff --git a/jetforce/tls.py b/jetforce/tls.py index 5cf8312..e9f7a44 100644 --- a/jetforce/tls.py +++ b/jetforce/tls.py @@ -4,7 +4,8 @@ import os import tempfile import typing -import OpenSSL +import OpenSSL.crypto +import OpenSSL.SSL from cryptography import x509 from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes, serialization @@ -120,9 +121,9 @@ class GeminiCertificateOptions(CertificateOptions): mark the certificate as not trusted. """ if not hasattr(conn, "authorised"): - conn.authorised = preverify_ok + conn.authorised = preverify_ok # type: ignore else: - conn.authorised *= preverify_ok + conn.authorised *= preverify_ok # type: ignore return True