From 7a69524e912b5a0697201ce50f2aeacbcf6bf3fb Mon Sep 17 00:00:00 2001 From: Snowykami Date: Mon, 21 Apr 2025 00:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=AF=BC=E5=85=A5=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=EF=BC=8C=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sync.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()