2.2 Мелкие улучшения и аннотации файлы

This commit is contained in:
Verum
2025-03-16 02:49:45 +07:00
parent c448a38918
commit d10e1b4834
17 changed files with 29 additions and 25 deletions

View File

@@ -9,7 +9,7 @@ __all__ = ("get_user",)
# Функция для получения данных о пользователе
async def get_user(tg_id: int, bd_name: str = BotVar.bd_names):
async def get_user(tg_id: int, bd_name: str = BotVar.bd_names) -> None:
with sqlite3.connect(bd_name) as db:
cursor = db.cursor()
cursor.execute("SELECT * FROM users WHERE tg_id = ?", (tg_id,))