diff --git a/sync.py b/sync.py index ea4d4b1..b1e5acb 100644 --- a/sync.py +++ b/sync.py @@ -1,8 +1,9 @@ import asyncio -from typing import Any, Callable, Coroutine -from functools import partial import aiofiles import yaml + +from typing import Any, Callable, Coroutine +from functools import partial from pydantic import BaseModel class Config(BaseModel): @@ -74,7 +75,6 @@ async def limited_task[T: Any](semaphore: asyncio.Semaphore, task: Callable[[], async with semaphore: return await task() - async def main(): async with aiofiles.open('images.yaml', 'r') as file: config = await file.read()