Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
elpekenin committed Jun 21, 2024
1 parent 268e5a3 commit 0d6c336
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion toml/_dotty.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def __setitem__(self, __key: str, __value: object):

keys, last = self.split(__key)

self.validate_keys(*keys, last)
self.validate_keys(last, *keys)
table = self.get_or_create_dict(keys)

table[last] = __value
Expand Down
2 changes: 1 addition & 1 deletion toml/_toml.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def toml(cls, raw_file: str) -> Dotty:
*parts, last = cls.key(key)
parts = table_name + parts

data.validate_keys(*parts, last)
data.validate_keys(last, *parts)
table = data.get_or_create_dict(parts)

table[last] = cls.value(value, parsed_line)
Expand Down

0 comments on commit 0d6c336

Please sign in to comment.