mirror of https://github.com/Nonannet/copapy.git
Fix in test function "get_42"
This commit is contained in:
parent
2eb49cc2e5
commit
accb03f042
|
|
@ -310,7 +310,7 @@ def get_42(x: value[Any]) -> value[float]: ...
|
|||
def get_42(x: NumLike) -> value[float] | float:
|
||||
"""Returns the value representing the constant 42"""
|
||||
if isinstance(x, value):
|
||||
return add_op('get_42', [x, x])
|
||||
return add_op('get_42', [x])
|
||||
return float((int(x) * 3.0 + 42.0) * 5.0 + 21.0)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue