From 178fea29c3fb5b14a62deeb112ed3e3d81e95157 Mon Sep 17 00:00:00 2001 From: Seth Michael Larson Date: Tue, 26 Dec 2023 12:51:04 -0600 Subject: [PATCH] Fix new linting and type issues (#125) --- noxfile.py | 4 +++- src/truststore/_api.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) 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