Home
Overview
Fundamentals
Glossary
Cheatsheet
API Reference
Quick Recipes
Deep Dive
Common Pitfalls and Gotchas
Persistent Storage
Operator argument type constraints.
kd.optools.constraints.expect_data_bag_args(param) -> tuple[Expr, str]Returns a constraint that the argument is a tuple of DataBags.
kd.optools.constraints.expect_data_slice(param) -> tuple[Expr, str]Returns a constraint that the argument is a DataSlice.
kd.optools.constraints.expect_data_slice_args(param) -> tuple[Expr, str]Returns a constraint that the argument is a tuple of DataSlice's.
kd.optools.constraints.expect_data_slice_kwargs(param) -> tuple[Expr, str]Returns a constraint that the argument is a namedtuple of DataSlice's.
kd.optools.constraints.expect_data_slice_or_unspecified(param) -> tuple[Expr, str]Returns a constraint that the argument is a DataSlice or unspecified().
kd.optools.constraints.expect_jagged_shape(param) -> tuple[Expr, str]Returns a constraint that the argument is a jagged shape.
kd.optools.constraints.expect_jagged_shape_or_unspecified(param) -> tuple[Expr, str]Returns a constraint that the argument is a jagged shape or unspecified().