core/expr: do not accept lambas for _sx_get__
This commit is contained in:
parent
d98f070b7d
commit
eab765578e
|
@ -383,8 +383,6 @@ def float_(x: BaseExpr[T]) -> UnaryExpr[T, float]:
|
|||
def get(expr: U[T, BaseExpr[T]], pop: bool = True) -> T:
|
||||
if isinstance(expr, BaseExpr):
|
||||
return expr._sx_get_(pop=pop)
|
||||
if isinstance(expr, types.FunctionType):
|
||||
return expr(pop)
|
||||
if isinstance(expr, tuple) and len(expr) >= 2:
|
||||
_get, _put = expr[:2]
|
||||
return _get(pop)
|
||||
|
|
Loading…
Reference in New Issue