MAESTRO: add base scanner protocol

This commit is contained in:
Mariusz Banach
2026-02-17 23:45:54 +01:00
parent 474df97e74
commit 4044ebb1bf
2 changed files with 15 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
from __future__ import annotations
from typing import Protocol
from .models import TestResult
from .parser import ParsedHeader
class BaseScanner(Protocol):
id: int
name: str
def run(self, headers: list[ParsedHeader]) -> TestResult | None:
"""Run the scanner against parsed headers."""