sync
This commit is contained in:
@@ -2,9 +2,9 @@ from __future__ import annotations
|
||||
|
||||
from collections.abc import Iterator
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING, final
|
||||
from typing import TYPE_CHECKING, Final, final
|
||||
|
||||
from pydantic.dataclasses import dataclass
|
||||
from autoslot import Slots
|
||||
|
||||
from docker_compose import ROOT
|
||||
|
||||
@@ -13,13 +13,11 @@ if TYPE_CHECKING:
|
||||
|
||||
|
||||
@final
|
||||
@dataclass(frozen=True, slots=True)
|
||||
class BindVols:
|
||||
# data_rep = Replace("data", str(DATA_ROOT))
|
||||
render: Render
|
||||
class BindVols(Slots):
|
||||
def __init__(self, render:Render) -> None:
|
||||
self.render:Final = render
|
||||
|
||||
def __call__(self):
|
||||
# def mk_bind_vols(self) -> None:
|
||||
for path in self:
|
||||
path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user