Skip to content

Commit

Permalink
update typehints in faqbot/orm.py
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Apr 6, 2024
1 parent a4b1522 commit ae9f278
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions faqbot/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,20 @@

from contextlib import contextmanager
from threading import Lock
from typing import Any

from sqlalchemy import Column, Integer, LargeBinary, String, create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker

Base = declarative_base()
Base: Any = declarative_base()
_Session = sessionmaker()
_lock = Lock()
_session = None # noqa


class FAQ(Base): # noqa
class FAQ(Base):
"""A FAQ entry."""

__tablename__ = "faq"
chat_id = Column(Integer, primary_key=True)
question = Column(String, primary_key=True)
Expand Down

0 comments on commit ae9f278

Please sign in to comment.