diff --git a/noxfile.py b/noxfile.py index 5edcd37..8dd5c9b 100644 --- a/noxfile.py +++ b/noxfile.py @@ -29,7 +29,9 @@ def format(session): @nox.session def lint(session): - session.install("black", "isort", "flake8", "mypy", "types-certifi", "tomli") + session.install( + "black", "isort", "flake8", "mypy", "types-certifi", "tomli", "urllib3" + ) session.run("flake8", "--ignore=E501,W503", *SOURCE_PATHS) session.run("black", "--check", *SOURCE_PATHS) session.run("isort", "--check", "--profile=black", *SOURCE_PATHS) diff --git a/src/truststore/_api.py b/src/truststore/_api.py index 718e6c0..579ff40 100644 --- a/src/truststore/_api.py +++ b/src/truststore/_api.py @@ -49,7 +49,7 @@ def extract_from_ssl() -> None: try: import urllib3.util.ssl_ as urllib3_ssl - urllib3_ssl.SSLContext = _original_SSLContext + urllib3_ssl.SSLContext = _original_SSLContext # type: ignore[assignment] except ImportError: pass