Skip to content

Commit

Permalink
Update DenseAxisArray.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Apr 15, 2024
1 parent f2aa5fb commit 2d11549
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Containers/DenseAxisArray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ function _kwargs_to_args(A::DenseAxisArray{T,N}; kwargs...) where {T,N}
end
end

function Base.getindex(A::DenseAxisArray{T,N}, args...; kwargs...) where {T,N}
function Base.getindex(A::DenseAxisArray, args...; kwargs...)
if !isempty(kwargs)
if !isempty(args)
error("Cannot index with mix of positional and keyword arguments")
Expand All @@ -413,7 +413,7 @@ function Base.getindex(A::DenseAxisArray{T,N}, args...; kwargs...) where {T,N}
end

function _getindex_inner(
A::DenseAxisArray{T,N},
A::DenseAxisArray{T},
args::Vararg{Any,N},
) where {T,N}
new_indices = Base.to_index(A, args)
Expand Down

0 comments on commit 2d11549

Please sign in to comment.