Skip to content

Commit

Permalink
fixed incorrect behavior in keys for Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde committed Nov 14, 2023
1 parent 8bf6589 commit 8b2720f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/varinfo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ _empty!(metadata) = empty!(metadata)
end

# `keys`
Base.keys(md::Metadata) = keys(md.idcs)
Base.keys(md::Metadata) = md.vns
Base.keys(vi::VarInfo) = keys(vi.metadata)

# HACK: Necessary to avoid returning `Any[]` which won't dispatch correctly
Expand Down

0 comments on commit 8b2720f

Please sign in to comment.