Skip to content

Conversation

KristofferC
Copy link
Member

@KristofferC KristofferC commented Nov 21, 2022

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.

Copy link
Member

@ararslan ararslan left a 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. :trollface:

counts
proportions
addcounts!(r::AbstractArray, x::StatsBase.IntegerArray, levels::StatsBase.IntUnitRange)
addcounts!(r::AbstractArray, x::StatsBase.AbstractArray{<:Integer}, levels::StatsBase.IntUnitRange)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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}.

nquantile
quantile
Statistics.median(v::StatsBase.RealVector, w::AbstractWeights{<:Real})
Statistics.median(v::StatsBase.AbstractVector{<:Real}, w::AbstractWeights{<:Real})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Statistics.median(v::StatsBase.AbstractVector{<:Real}, w::AbstractWeights{<:Real})
Statistics.median(v::AbstractVector{<:Real}, w::AbstractWeights{<:Real})

@KristofferC
Copy link
Member Author

Updated

@ararslan ararslan merged commit 0b64a9c into JuliaStats:master Dec 6, 2022
yuyichao added a commit to yuyichao/Clustering.jl that referenced this pull request Dec 13, 2022
ararslan pushed a commit to JuliaStats/Clustering.jl that referenced this pull request Dec 14, 2022
kagalenko-m-b pushed a commit to kagalenko-m-b/StatsBase.jl that referenced this pull request Feb 14, 2023
ararslan added a commit to JuliaStats/MLBase.jl that referenced this pull request Aug 17, 2023
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants