mirror of
https://github.com/mgeeky/decode-spam-headers.git
synced 2026-02-22 05:23:31 +01:00
15 lines
310 B
Python
15 lines
310 B
Python
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."""
|