Resolve import cycle

This commit is contained in:
Jörn-Michael Miehe 2021-12-02 17:12:30 +01:00
parent 1d5c4ccbee
commit 45fc16c132
2 changed files with 10 additions and 6 deletions

View file

@ -1,17 +1,19 @@
import functools
from pathlib import Path
from typing import Optional, Dict, Any
from typing import TYPE_CHECKING, Optional, Dict, Any
import attr
from ruamel.yaml import CommentedMap
from ._constants import COMPOSE_FILE_NAME, CONF_DIRECTORY_NAME
from .config import ProjectConfig
from .instance import Instance
from .service import Service
from .services import Services
from .yaml import YAML
if TYPE_CHECKING:
from .instance import Instance
@attr.s
class Project:

View file

@ -1,12 +1,14 @@
import re
import subprocess
from pathlib import Path
from typing import Generator
from typing import TYPE_CHECKING, Generator
import attr
from ruamel.yaml import CommentedMap
from .executable import COMPOSE_EXE
if TYPE_CHECKING:
from .project import Project