Skip to content
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

limit type-piracy in getindex #247

Merged
merged 4 commits into from
Jun 29, 2021
Merged

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented Jun 20, 2021

Fix to address JuliaArrays/ArrayInterface.jl#170. Technically it's breaking, as it reverts #244 for custom AbstractUnitRanges, however since ranges are treated to be equal based only on value, this won't lead to errors unless one specifically relies on the indices as computed in #244 for custom range types. Since that behavior was type-piracy anyway, I wonder if this may be treated as a minor change?

In any case this may be a temporary fix if JuliaLang/julia#41284 is merged.

@codecov
Copy link

codecov bot commented Jun 20, 2021

Codecov Report

Merging #247 (a64e98a) into master (7a43b4c) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #247   +/-   ##
=======================================
  Coverage   95.26%   95.26%           
=======================================
  Files           5        5           
  Lines         422      422           
=======================================
  Hits          402      402           
  Misses         20       20           
Impacted Files Coverage Δ
src/OffsetArrays.jl 98.22% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a43b4c...a64e98a. Read the comment docs.

@johnnychen94
Copy link
Member

Looks more like a "bug" fix to me so maybe v1.10.1 is more accurate.

@jishnub jishnub merged commit 4bd33fb into JuliaArrays:master Jun 29, 2021
@jishnub jishnub deleted the ambiguityfix branch June 29, 2021 12:34
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