Помогите пожалуйста, что здесь не так?
create_bot.py
import logging
from aiogram import Bot, Dispatcher
from aiogram.client.default import DefaultBotProperties
from aiogram.enums import ParseMode
from aiogram.fsm.storage.memory import MemoryStorage
from decouple import config
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from asyncpg_lite import DatabaseManager
#from db_handler.db_class import PostgresHandler
pg_manager = DatabaseManager(dsn=config('PG_LINK'), deletion_password=config('ROOT_PASS'))
#pg_db = PostgresHandler(config('PG_LINK'))
scheduler = AsyncIOScheduler(timezone='Europe/Moscow')
admins = [int(admin_id) for admin_id in config('ADMINS').split(',')]
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
logger = logging.getLogger(__name__)
bot = Bot(token=config('TOKEN'), default=DefaultBotProperties(parse_mode=ParseMode.HTML))
dp = Dispatcher(storage=MemoryStorage())
aiogram_run.py
import asyncio
from create_bot import bot, dp, scheduler
from handlers.start import start_router
# from work_time.time_func import send_time_msg
async def main():
# scheduler.add_job(send_time_msg, 'interval', seconds=10)
# scheduler.start()
dp.include_router(start_router)
#await bot.delete_webhook(drop_pending_updates=True)
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(main())
Ошибка
Traceback (most recent call last):
File "d:\Programmer\Uki-TG\aiogram_run.py", line 2, in <module>
from create_bot import bot, dp, scheduler
File "d:\Programmer\Uki-TG\create_bot.py", line 8, in <module>
from asyncpg_lite import DatabaseManager
File "D:\Programmer\Uki-TG\.venv\lib\site-packages\asyncpg_lite\__init__.py", line 12, in <module>
class DatabaseManager:
File "D:\Programmer\Uki-TG\.venv\lib\site-packages\asyncpg_lite\__init__.py", line 93, in DatabaseManager
async def create_table(self, table_name: str, columns: List[Dict[str, ...]]) -> None:
File "C:\Users\Артем\AppData\Local\Programs\Python\Python310\lib\typing.py", line 309, in inner
return func(*args, **kwds)
File "C:\Users\Артем\AppData\Local\Programs\Python\Python310\lib\typing.py", line 1119, in __getitem__
params = tuple(_type_check(p, msg) for p in params)
File "C:\Users\Артем\AppData\Local\Programs\Python\Python310\lib\typing.py", line 1119, in <genexpr>
params = tuple(_type_check(p, msg) for p in params)
File "C:\Users\Артем\AppData\Local\Programs\Python\Python310\lib\typing.py", line 173, in _type_check
raise TypeError(f"{msg} Got {arg!r:.100}.")
TypeError: Parameters to generic types must be types. Got Ellipsis.
Ошибка появилась резко, после подключение 'DatabaseManager'