We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d11d871 commit 3b3d620Copy full SHA for 3b3d620
src/core.jl
@@ -241,7 +241,7 @@ end
241
242
# Alternative constructor, takes names as keywords:
243
AxisArray(A; kw...) = AxisArray(A, nt_to_axes(values(kw)))
244
-@generated nt_to_axes(nt::NamedTuple{names,T}) where {names,T} =
+@generated nt_to_axes(nt::NamedTuple{names}) where {names} =
245
Expr(:tuple, (:(Axis{$(QuoteNode(n))}(getfield(nt, $(QuoteNode(n))))) for n in names)...)
246
247
AxisArray(A::AxisArray) = A
0 commit comments