Skip to content

Commit 350bc7b

Browse files
committed
ensure_attributes!: Make signature reflect function body
(passing the NamedTuple variant is an error here, and can't be mutated anyway)
1 parent 1ee493f commit 350bc7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/syntax_graph.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function Base.show(io::IO, ::MIME"text/plain", graph::SyntaxGraph)
3939
_show_attrs(io, graph.attributes)
4040
end
4141

42-
function ensure_attributes!(graph::SyntaxGraph; kws...)
42+
function ensure_attributes!(graph::SyntaxGraph{<:Dict}; kws...)
4343
for (k,v) in pairs(kws)
4444
@assert k isa Symbol
4545
@assert v isa Type

0 commit comments

Comments
 (0)