Skip to content

Commit 14e2002

Browse files
committed
wip
1 parent 3f18779 commit 14e2002

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.pre-commit-config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ repos:
5353
types-requests,
5454
types-setuptools,
5555
types-mock,
56+
types-decorator,
57+
types-pytz,
5658
# types-click,
5759
# types-pkg_resources,
5860
# types-requests,

frontend/coprs_frontend/coprs/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from coprs.redis_session import RedisSessionInterface
2020
from coprs.request import get_request_class
2121

22-
app = flask.Flask(__name__)
22+
app : flask.Flask = flask.Flask(__name__)
2323
if "COPRS_ENVIRON_PRODUCTION" in os.environ:
2424
app.config.from_object("coprs.config.ProductionConfig")
2525
elif "COPRS_ENVIRON_UNITTEST" in os.environ:
@@ -42,7 +42,7 @@
4242
session = Session(app)
4343

4444
# Set `future=True` to ensure compatibility between SQLAlchemy 1.x and 2.0
45-
db = SQLAlchemy(app, engine_options={"future": True})
45+
db : SQLAlchemy = SQLAlchemy(app, engine_options={"future": True})
4646

4747
@contextmanager
4848
def db_session_scope():

0 commit comments

Comments
 (0)