This file contains hidden or 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
"""Provide `typed_callback` to create `dash.callback`s from type hints.""" | |
import sys | |
from typing import get_origin, get_args, Any, Union, Tuple | |
from dash import callback, Output, Input, State # type: ignore[import] | |
if sys.version_info >= (3, 10): | |
from collections.abc import Callable | |
from inspect import get_annotations | |
from typing import Annotated, _AnnotatedAlias |
This file contains hidden or 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
\documentclass[ | |
tikz, | |
class=scrartcl,% underlying class which is loaded by standalone | |
headinclude,fontsize=12pt,DVI=12% options used by typearea | |
]{standalone} | |
\storeareas\standalonelayout% save the standalone layout | |
\recalctypearea% recalculate the typearea layout | |
\edef\savedtextheight{\the\textheight}% save the text height of the typearea layout | |
\standalonelayout% restore the standalone layout |