You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Disallow `method` and `normed` to be used together
58
-
ifisnothing(method)
59
-
isnothing(normed) || Base.depwarn("`normed` kwarg is deprecated, please use `method=:normalized` instead of `normed=true`, and `method=:classic` instead of `normed=false'", :mutualinfo)
60
-
method =ifisnothing(normed) || normed
58
+
if method===nothing
59
+
(normed===nothing) || Base.depwarn("`normed` kwarg is deprecated, please use `method=:normalized` instead of `normed=true`, and `method=:classic` instead of `normed=false'", :mutualinfo)
60
+
method =if (normed===nothing) || normed
61
61
:normalized
62
62
else
63
63
:classic
64
64
end
65
65
else
66
-
isnothing(normed) ||throw(ArgumentError("`normed` kwarg is not compatible with `method` kwarg"))
66
+
(normed===nothing) ||throw(ArgumentError("`normed` kwarg is not compatible with `method` kwarg"))
67
67
end
68
-
# Little hack to ensure the correct error is thrown
68
+
# Little hack to ensure the invalid kwargs error is thrown
69
69
if method ===:adjusted&&length(kwargs) >=1&&:aggregate∉keys(kwargs)
0 commit comments