From f3967359ab595889222ab8ccdb20644ee2211588 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Fri, 14 Feb 2025 17:59:20 +0200 Subject: [PATCH] Use __future__ to make old python happy Signed-off-by: Jussi Kukkonen --- tests/test_proxy_environment.py | 2 ++ tuf/ngclient/_internal/proxy.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/tests/test_proxy_environment.py b/tests/test_proxy_environment.py index 7019a6c2f7..f7bb0b7baa 100644 --- a/tests/test_proxy_environment.py +++ b/tests/test_proxy_environment.py @@ -3,6 +3,8 @@ """Test ngclient ProxyEnvironment""" +from __future__ import annotations + import sys import unittest from unittest.mock import Mock, patch diff --git a/tuf/ngclient/_internal/proxy.py b/tuf/ngclient/_internal/proxy.py index 699ef54d3e..19bc4b64f2 100644 --- a/tuf/ngclient/_internal/proxy.py +++ b/tuf/ngclient/_internal/proxy.py @@ -3,6 +3,8 @@ """Proxy environment variable handling with Urllib3""" +from __future__ import annotations + from typing import Any from urllib.request import getproxies