File size: 448 Bytes
4a51346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""Tools for creating transform & filter expressions with a python syntax"""
# ruff: noqa
from typing import Any

from .core import datum, Expression
from .funcs import *
from .consts import *
from ..vegalite.v5.schema.core import ExprRef as _ExprRef


class _ExprType:
    def __init__(self, expr):
        vars(self).update(expr)

    def __call__(self, expr, **kwargs):
        return _ExprRef(expr, **kwargs)


expr: Any = _ExprType(globals())