PRD 0053: Egress DLP addon #196

Merged
didericis merged 8 commits from prd-0053-egress-dlp-addon into main 2026-06-06 00:09:21 -04:00
Showing only changes of commit 52820278fd - Show all commits
+6 -4
View File
@@ -15,7 +15,12 @@ from dataclasses import dataclass
from pathlib import Path
from typing import TYPE_CHECKING
from .egress_addon_core import Route
from .egress_addon_core import (
HeaderMatch as CoreHeaderMatch,
MatchEntry as CoreMatchEntry,
PathMatch as CorePathMatch,
Route,
)
from .log import die
if TYPE_CHECKING:
@@ -62,9 +67,6 @@ class EgressPlan:
def egress_manifest_routes(
didericis marked this conversation as resolved
Review

Why not import these at the top of the module?

Why not import these at the top of the module?
bottle: Bottle,
) -> tuple[EgressRoute, ...]:
from .egress_addon_core import MatchEntry as CoreMatchEntry
from .egress_addon_core import PathMatch as CorePathMatch
from .egress_addon_core import HeaderMatch as CoreHeaderMatch
out: list[EgressRoute] = []
for r in bottle.egress.routes:
core_matches: list[CoreMatchEntry] = []