This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" A module for Streamlit to set up traps, which are triggered on next script rerun (i.e. user action) if the trap wasn't reached. | |
Purpose: | |
Help with session cleaning on dynamic forms. If user didn't reach it - then clear session. | |
""" | |
from collections.abc import Callable | |
import streamlit as st | |
__SESSION_STATE_DICT_KEY = "__INT_TRAPS_DICT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from dataclasses import MISSING, dataclass, field, fields, is_dataclass | |
from datetime import date | |
from typing import Callable, TypeVar | |
import streamlit as st | |
T = TypeVar('T') | |
@dataclass | |
class Test: |