Skip to content

Commit e36aa85

Browse files
committed
ruff format
1 parent e349950 commit e36aa85

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

tomlkit/container.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,7 @@ def append(
291291

292292
if not self._parsed:
293293
is_table = isinstance(item, (Table, AoT))
294-
if (
295-
key is not None
296-
and self._body
297-
and (not is_table or key.is_dotted())
298-
):
294+
if key is not None and self._body and (not is_table or key.is_dotted()):
299295
# If there is already at least one table in the current container
300296
# and the given item is not a table, we need to find the last
301297
# item that is not a table and insert after it

tomlkit/parser.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,9 +425,7 @@ def _parse_bare_key(self) -> Key:
425425
Parses a bare key.
426426
"""
427427
src = self._src
428-
while (
429-
src._current in BARE or src._current in SPACES
430-
) and src.inc():
428+
while (src._current in BARE or src._current in SPACES) and src.inc():
431429
pass
432430

433431
original = src.extract()

0 commit comments

Comments
 (0)