Commit 14e2002 1 parent 3f18779 commit 14e2002 Copy full SHA for 14e2002
File tree 2 files changed +4
-2
lines changed
frontend/coprs_frontend/coprs
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 53
53
types-requests,
54
54
types-setuptools,
55
55
types-mock,
56
+ types-decorator,
57
+ types-pytz,
56
58
# types-click,
57
59
# types-pkg_resources,
58
60
# types-requests,
Original file line number Diff line number Diff line change 19
19
from coprs .redis_session import RedisSessionInterface
20
20
from coprs .request import get_request_class
21
21
22
- app = flask .Flask (__name__ )
22
+ app : flask . Flask = flask .Flask (__name__ )
23
23
if "COPRS_ENVIRON_PRODUCTION" in os .environ :
24
24
app .config .from_object ("coprs.config.ProductionConfig" )
25
25
elif "COPRS_ENVIRON_UNITTEST" in os .environ :
42
42
session = Session (app )
43
43
44
44
# 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 })
46
46
47
47
@contextmanager
48
48
def db_session_scope ():
You can’t perform that action at this time.
0 commit comments