Added state directory.

This commit is contained in:
2023-10-13 19:56:10 +02:00
parent 4ab4832d41
commit 740e5e2ebc
10 changed files with 74 additions and 35 deletions

View File

@@ -1,5 +1,7 @@
# mypy: ignore-errors
import logging
from pathlib import Path
from typing import Any
from pydantic import AnyUrl, BaseModel, validator
@@ -28,7 +30,7 @@ class ClanDataPath(BaseModel):
dest: Path
@validator("dest")
def check_data_path(cls, v: Path) -> Path:
def check_data_path(cls: Any, v: Path) -> Path: # type: ignore
return validate_path(clan_data_dir(), v)
@@ -36,7 +38,7 @@ class ClanFlakePath(BaseModel):
dest: Path
@validator("dest")
def check_dest(cls, v: Path) -> Path:
def check_dest(cls: Any, v: Path) -> Path: # type: ignore
return validate_path(clan_flake_dir(), v)