-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Splatting creates spurious warning about extending function without using module defined typed arguments #224
Comments
At least the first case is valid, no? You define |
Hmm, I'm not following you. The signature in that function definition is Base.cat(us::UnivariateFiniteArray{S,V,R,P,N}...; dims::Integer) where {S,V,R,P,N} Notice that in the second screen capture, the warning goes away after removing the splatting. That code is from MLJBase.jl. Here's a link. Here's a reproducible example: struct A
x::Int
end
Base.cat(a::A...; dims::Integer) = a.x + 1 (I deleted the second example since I can't reproduce it.) EDIT: Sorry I was too lazy last night to add explanatory notes to the screenshots and come up with a reprex. 😂 |
You're defining
|
Oh, and the usual fix for this is to define |
Oh, ok, makes sense. I didn't write that code, but I'll make a PR to MLJBase. Although it does seem a little odd to me that |
The text was updated successfully, but these errors were encountered: