summaryrefslogtreecommitdiff
path: root/src/hydrilla/proxy/web_ui/_app.py
blob: ab1591875edb3a2813feb8c85310e2dc0b84737f (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-License-Identifier: CC0-1.0

# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
#
# Available under the terms of Creative Commons Zero v1.0 Universal.

import typing as t

import flask

from .. import state as st


class WebUIApp(flask.Flask):
    _haketilo_state: st.HaketiloState

def get_haketilo_state() -> st.HaketiloState:
    return t.cast(WebUIApp, flask.current_app)._haketilo_state