From 93e0a3ddc71e6c7a6dcefaa2ac85d15c488e5f73 Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Sat, 19 Feb 2022 14:51:59 -0500 Subject: [PATCH] Fixing build --- .github/workflows/test.yml | 3 +-- jetforce/tls.py | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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