From b4a0b5c984436e25137e377049c5e292be7edd57 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:22:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- lib/ruyaml/comments.py | 6 +++--- lib/ruyaml/emitter.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ruyaml/comments.py b/lib/ruyaml/comments.py index 0e30c085..1fa28111 100644 --- a/lib/ruyaml/comments.py +++ b/lib/ruyaml/comments.py @@ -1105,9 +1105,9 @@ def __init__(self, *args, **kw): except TypeError: raise - __delitem__ = ( - __setitem__ - ) = clear = pop = popitem = setdefault = update = raise_immutable + __delitem__ = __setitem__ = clear = pop = popitem = setdefault = update = ( + raise_immutable + ) # need to implement __getitem__, __iter__ and __len__ def __getitem__(self, index): diff --git a/lib/ruyaml/emitter.py b/lib/ruyaml/emitter.py index d5fe1a16..cb08be60 100644 --- a/lib/ruyaml/emitter.py +++ b/lib/ruyaml/emitter.py @@ -1234,9 +1234,9 @@ def analyze_scalar(self, scalar): # Spaces followed by breaks, as well as special character are only # allowed for double quoted scalars. if special_characters: - allow_flow_plain = ( - allow_block_plain - ) = allow_single_quoted = allow_block = False + allow_flow_plain = allow_block_plain = allow_single_quoted = allow_block = ( + False + ) elif space_break: allow_flow_plain = allow_block_plain = allow_single_quoted = False if not self.allow_space_break: