Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@overload
def func(x: isa(int, float)):
return -x
@overload
def get_lines_num(draw, lines_param):
raise InvalidArgument("Lines param must be an integer or None")
@overload
def get_columns(draw, columns: isa(int)):
columns = [draw(sampled_from(valid_column_types))() for _ in range(columns)]
return columns