Coverage for src / local_deep_research / domain_classifier / __init__.py: 85%
9 statements
« prev ^ index » next coverage.py v7.12.0, created at 2026-01-11 00:51 +0000
« prev ^ index » next coverage.py v7.12.0, created at 2026-01-11 00:51 +0000
1"""Domain classifier module for categorizing domains using LLM."""
4def __getattr__(name: str):
5 """Lazy imports to avoid circular imports with database.models."""
6 if name == "DomainClassifier":
7 from .classifier import DomainClassifier
9 return DomainClassifier
10 if name == "DomainClassification": 10 ↛ 14line 10 didn't jump to line 14 because the condition on line 10 was always true
11 from .models import DomainClassification
13 return DomainClassification
14 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
17__all__ = ["DomainClassifier", "DomainClassification"]