Skip to content

Commit 41d1feb

Browse files
Fix incorrect toml_document variable name (#577)
1 parent df01ed7 commit 41d1feb

File tree

1 file changed

+2
-2
lines changed
  • src/usethis/_integrations/file/toml

1 file changed

+2
-2
lines changed

src/usethis/_integrations/file/toml/io_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ def extend_list(self, *, keys: Sequence[Key], values: list[Any]) -> None:
277277
for key in reversed(keys):
278278
contents = {key: contents}
279279
assert isinstance(contents, dict)
280-
pyproject = mergedeep.merge(toml_document, contents)
281-
assert isinstance(pyproject, TOMLDocument)
280+
toml_document = mergedeep.merge(toml_document, contents)
281+
assert isinstance(toml_document, TOMLDocument)
282282
else:
283283
TypeAdapter(dict).validate_python(p_parent)
284284
TypeAdapter(list).validate_python(d)

0 commit comments

Comments
 (0)