Array.read_only looks like a boolean predicate, asking whether the current array is read-only or not.
Instead it's a method that converts the current array into a read-only array.
def read_only(self) -> Array: # returns an Array
def is_sharded(self) -> bool: # actual predicate, same class
I'll leave this as-is for 0.1 and we can come back to discuss
Array.read_onlylooks like a boolean predicate, asking whether the current array is read-only or not.Instead it's a method that converts the current array into a read-only array.
I'll leave this as-is for 0.1 and we can come back to discuss