MCPcopy
hub / github.com/pathwaycom/pathway / wrap

Method wrap

python/pathway/internals/expression.py:36–40  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

34 @staticmethod
35 def build(kind: type[ColumnExpression], *args, **kwargs) -> InternalColExpr:
36 def wrap(arg):
37 if isinstance(arg, ColumnExpression):
38 return arg._to_internal()
39 else:
40 return arg
41
42 args = tuple(wrap(arg) for arg in args)
43 kwargs = {name: wrap(kwarg) for name, kwarg in kwargs.items()}

Callers 15

schema_builderFunction · 0.80
with_typesMethod · 0.80
with_id_typeMethod · 0.80
column_definitionFunction · 0.80
get_dtypeFunction · 0.80
__init__Method · 0.80
dtypeMethod · 0.80
static_table_from_pandasFunction · 0.80
eval_constMethod · 0.80
eval_method_callMethod · 0.80

Calls 2

_to_internalMethod · 0.45
to_column_expressionMethod · 0.45

Tested by 3

test_dtypesFunction · 0.64
buildFunction · 0.64