I think this is wrong and should definitely be changed back to a `TypeError`, as per the `np.bincount` precendent. (i.e. `np.bincount` raises `TypeError` when you pass in a float array.

At any rate you didn't change the docstring to match. =)

What do you mean by "should use `issubdtype`"? Do you mean for `bool`?