Skip to content

Commit

Permalink
Annotate patch with NamedTuple
Browse files Browse the repository at this point in the history
  • Loading branch information
serenity4 committed Jul 28, 2024
1 parent 20fc674 commit c73435f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConstructionBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ setproperties_object(obj, patch::NamedTuple{()}) = obj
:(constructorof(typeof(obj))($(args...)))
end

function setproperties_object(obj, patch)
function setproperties_object(obj, patch::NamedTuple)
check_properties_are_fields(obj)
check_patch_fields_exist(obj, patch)
setfields_object(obj, patch)
Expand Down

0 comments on commit c73435f

Please sign in to comment.