using doc forge
This commit is contained in:
5
mail_intake/parsers/__init__.pyi
Normal file
5
mail_intake/parsers/__init__.pyi
Normal file
@@ -0,0 +1,5 @@
|
||||
from .body import extract_body
|
||||
from .headers import parse_headers, extract_sender
|
||||
from .subject import normalize_subject
|
||||
|
||||
__all__ = ["extract_body", "parse_headers", "extract_sender", "normalize_subject"]
|
||||
3
mail_intake/parsers/body.pyi
Normal file
3
mail_intake/parsers/body.pyi
Normal file
@@ -0,0 +1,3 @@
|
||||
from typing import Dict, Any
|
||||
|
||||
def extract_body(payload: Dict[str, Any]) -> str: ...
|
||||
4
mail_intake/parsers/headers.pyi
Normal file
4
mail_intake/parsers/headers.pyi
Normal file
@@ -0,0 +1,4 @@
|
||||
from typing import Dict, List, Tuple, Optional
|
||||
|
||||
def parse_headers(raw_headers: List[Dict[str, str]]) -> Dict[str, str]: ...
|
||||
def extract_sender(headers: Dict[str, str]) -> Tuple[str, Optional[str]]: ...
|
||||
1
mail_intake/parsers/subject.pyi
Normal file
1
mail_intake/parsers/subject.pyi
Normal file
@@ -0,0 +1 @@
|
||||
def normalize_subject(subject: str) -> str: ...
|
||||
Reference in New Issue
Block a user