Write a function in Python that takes an array of integers as an input and returns an array with only the distinct numbers from the input.
[1, 2, 3, 4, 4, 5, 5]
def distinct_numbers(arr):
 return list(set(arr))