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

Method __validate_seq

funct/Array.py:1086–1092  ·  view source on GitHub ↗
(self, e)

Source from the content-addressed store, hash-verified

1084 return Array(e) if isinstance(e, Array.__baseIterables) else e
1085
1086 def __validate_seq(self, e):
1087 if len(e) != self.size:
1088 raise ValueError(
1089 "The lengths of the sequences must match, got {} and {}".format(
1090 self.size, len(e)
1091 )
1092 )
1093
1094 def __validate_index(self, i):
1095 if not isinstance(i, (int, slice)):

Callers 3

equalMethod · 0.95
__mapMethod · 0.95
__rpow__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected