调整导入顺序,优化代码结构
All checks were successful
Sync Container Images / sync-images (push) Successful in 40s

This commit is contained in:
远野千束 2025-04-21 00:54:26 +08:00
parent ffc326a940
commit 7a69524e91

View File

@ -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()