Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 25, 2025
1 parent 9dbfe7e commit c716907
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/widgetastic/widget/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,11 @@ def __get__(self, o, t):
ref_o = nested_getattr(o, self.reference)
if isinstance(ref_o, Widget):
ref_value = ref_o.read()
ref_value = ref_value.split(" ")[1] if ref_value.startswith('×') else ref_value
ref_value = (
ref_value.split(" ")[1]
if ref_value.startswith("×")
else ref_value
)
else:
ref_value = ref_o
condition_arg_cache[self.reference] = ref_value
Expand Down

0 comments on commit c716907

Please sign in to comment.