Removed unnecessary comments and type hints in src.__init__

This commit is contained in:
StNicolay 2022-11-13 19:49:21 +03:00
parent 18abdecb74
commit a61deca6fa

View File

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