26 lines
463 B
Python
26 lines
463 B
Python
from ..models import ChinookFile
|
|
|
|
from pathlib import Path
|
|
from typing import overload
|
|
|
|
|
|
@overload
|
|
def build(path: Path) -> None: ...
|
|
|
|
@overload
|
|
def build(file: ChinookFile) -> None: ...
|
|
|
|
|
|
def build(value) -> None:
|
|
if isinstance(value, Path):
|
|
return _build_from_path(value)
|
|
elif isinstance(value, ChinookFile):
|
|
return _build_from_file(value)
|
|
|
|
|
|
def _build_from_path(path: Path) -> None:
|
|
pass
|
|
|
|
def _build_from_file(file: ChinookFile) -> None:
|
|
pass
|