diff --git a/src/__init__.py b/src/__init__.py index ad44c78..03c648b 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -6,7 +6,6 @@ from sqlalchemy.future import Engine from . import bot, cryptography, database __all__ = ["bot", "cryptography", "database"] -engine: Engine def main() -> None: @@ -16,7 +15,7 @@ def main() -> None: user=os.getenv("DB_USER"), passwd=os.getenv("DB_PASS"), db=os.getenv("DB_NAME"), - ) # type: ignore + ) database.prepare.prepare(engine) - bot_ = bot.create_bot(os.getenv("TG_TOKEN"), engine) # type: ignore + bot_ = bot.create_bot(os.getenv("TG_TOKEN"), engine) bot_.infinity_polling()