Fixing build

This commit is contained in:
Michael Lazar 2022-02-19 14:51:59 -05:00
parent dd399cb4be
commit 93e0a3ddc7
2 changed files with 5 additions and 5 deletions

View File

@ -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/

View File

@ -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