-
Notifications
You must be signed in to change notification settings - Fork 194
get rid of old typealiases #840
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for doing this! Though clearly the proper fix would have been to take a dependency on NumericalTypeAliases.
docs/src/counts.md
Outdated
@@ -7,7 +7,7 @@ The package provides functions to count the occurrences of distinct values. | |||
```@docs | |||
counts | |||
proportions | |||
addcounts!(r::AbstractArray, x::StatsBase.IntegerArray, levels::StatsBase.IntUnitRange) | |||
addcounts!(r::AbstractArray, x::StatsBase.AbstractArray{<:Integer}, levels::StatsBase.IntUnitRange) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addcounts!(r::AbstractArray, x::StatsBase.AbstractArray{<:Integer}, levels::StatsBase.IntUnitRange) | |
addcounts!(r::AbstractArray, x::AbstractArray{<:Integer}, levels::StatsBase.IntUnitRange) |
I guess IntUnitRange
could be similarly removed, as it's an alias for UnitRange{<:Integer}
.
docs/src/scalarstats.md
Outdated
@@ -69,7 +69,7 @@ percentile | |||
iqr | |||
nquantile | |||
quantile | |||
Statistics.median(v::StatsBase.RealVector, w::AbstractWeights{<:Real}) | |||
Statistics.median(v::StatsBase.AbstractVector{<:Real}, w::AbstractWeights{<:Real}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Statistics.median(v::StatsBase.AbstractVector{<:Real}, w::AbstractWeights{<:Real}) | |
Statistics.median(v::AbstractVector{<:Real}, w::AbstractWeights{<:Real}) |
Updated |
* import numerical array types from NumericalTypeAliases and not StatsBase * add CompatHelper action * replaced uses of type aliases with their definitions in the same manner as JuliaStats/StatsBase.jl#840 * Include both StatsBase 0.33 and 0.34 in compat Co-authored-by: Alex Arslan <ararslan@comcast.net> --------- Co-authored-by: Alex Arslan <ararslan@comcast.net>
As the comment in
common.jl
says, these are obsolete now with the terse covariant syntax.Interestingly, there is apparently a whole package just for these type alises: https://github.com/AP6YC/NumericalTypeAliases.jl/blob/develop/README.md#aliases.