wikit-ai / olaf

6 stars 1 forks source link

Fix(circular-import) #128

Closed ba-talibe closed 5 months ago

ba-talibe commented 5 months ago

To avoid circular imports : I added this folowing lines :

from typing import Any, TYPE_CHECKING

if TYPE_CHECKING:
    from ..pipeline_schema import Pipeline

TYPE_CHECKING is special constant that is assumed to be True by 3rd party static type checkers. It is False at runtime.

ba-talibe commented 5 months ago

PR for issue 25