mirror of
https://github.com/denizsafak/abogen.git
synced 2026-09-20 11:40:57 +02:00
refactor: ConversionPlan.request forward ref
- request type: Any → ConversionRequest via TYPE_CHECKING
This commit is contained in:
@@ -17,7 +17,10 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from dataclasses import dataclass, field
|
from dataclasses import dataclass, field
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Dict, List, Optional
|
from typing import TYPE_CHECKING, Any, Dict, List, Optional
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from abogen.application.conversion_request import ConversionRequest
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
@@ -84,7 +87,7 @@ class ConversionPlan:
|
|||||||
This is the output of the planning phase and input to the executor.
|
This is the output of the planning phase and input to the executor.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
request: Any # ConversionRequest (forward reference to avoid circular import)
|
request: ConversionRequest
|
||||||
metadata: Dict[str, Any]
|
metadata: Dict[str, Any]
|
||||||
chapters: List[ChapterPlan]
|
chapters: List[ChapterPlan]
|
||||||
intro: Optional[IntroOutroSpec] = None
|
intro: Optional[IntroOutroSpec] = None
|
||||||
|
|||||||
Reference in New Issue
Block a user