Skip to content

Commit

Permalink
Make it explicit that the member_type is inferred.
Browse files Browse the repository at this point in the history
The member type of a variant _type_ is unknown, only a variant _value_
knows it.
  • Loading branch information
mvidner committed Apr 8, 2022
1 parent 82531b1 commit 48301c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dbus/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ def self.from_typed(value, member_types:) # rubocop:disable Lint/UnusedMethodArg
# assert member_types.empty?

# decide on type of value
new(value, member_type: member_types.first)
new(value, member_type: nil)
end

# Note that for Variants type=="v",
Expand Down

0 comments on commit 48301c2

Please sign in to comment.