Just to give a counter-point, it’s often useful to just not restrict method signatures unless you actually have a reason to. The docstring is telling you it expects to get numbers, but maybe you can stick a square matrix in there and it’ll be okay, or even a string:
julia> f(rand(2,2))
2×2 Array{Float64,2}:
0.754887 0.527028
0.932377 0.654844
julia> f("hi")
"hihi"