mirror of
https://github.com/DragonMinded/bemaniutils.git
synced 2026-03-22 09:45:03 -05:00
20 lines
320 B
Python
20 lines
320 B
Python
from typing import TYPE_CHECKING
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
from flask.ctx import _AppCtxGlobals
|
|
|
|
from bemani.data import Config, Data
|
|
|
|
class RequestGlobals(_AppCtxGlobals):
|
|
config: Config
|
|
data: Data
|
|
authorized: bool
|
|
|
|
g = RequestGlobals()
|
|
else:
|
|
from flask import g
|
|
|
|
|
|
__all__ = ["g"]
|