MCPcopy Create free account
hub / github.com/Lauriat/funct / __validate_bool_arg

Method __validate_bool_arg

funct/Array.py:1113–1115  ·  view source on GitHub ↗
(self, value, name)

Source from the content-addressed store, hash-verified

1111 return itertools.repeat(e)
1112
1113 def __validate_bool_arg(self, value, name):
1114 if not isinstance(value, bool):
1115 raise ValueError(f"Expected type bool for {name} argument")
1116
1117 def __setinplace(self, s, arg):
1118 self.__validate_bool_arg(arg, "inplace")

Callers 7

chunksMethod · 0.95
windowsMethod · 0.95
sortByMethod · 0.95
sortMethod · 0.95
reverseMethod · 0.95
__setinplaceMethod · 0.95
__operateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected