fix(proxy): add future annotations import to guard middleware

The return annotation referenced the TYPE_CHECKING-only SecurityConfig
name, which raised NameError at import time and broke every proxy unit
test in CI.
This commit is contained in:
Renn F 2026-10-11 01:14:09 +02:00
parent 74febbea64
commit 21b5eb6454
No known key found for this signature in database
GPG key ID: B48363D3A3A4CF78

View file

@ -27,6 +27,8 @@ Design constraints honored here:
envelope for 403/429 as for other proxy rejections.
"""
from __future__ import annotations
import os
from typing import TYPE_CHECKING, Any