You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm always frustrated when formatting for a long if statement that involved in. So the if statement shall break with the "and", "or" keyword normally. However, if it is like a "key" in [array_item1, array_item2... ], it will break from the list and create a inconsistent layout with other if.
please think of every variable is with very long name
if a=b and c=d:
normally change to
if (
a=b
and c=d
):
but
if a=b and c in [d, e, f]:
it will change to
if a=b and c in [d,
e, f]:
Solution that I want to have
I hope that it will behave like other situation and become
if a=b
and c in [d, e, f]:
The text was updated successfully, but these errors were encountered:
The problem
I'm always frustrated when formatting for a long if statement that involved in. So the if statement shall break with the "and", "or" keyword normally. However, if it is like a "key" in [array_item1, array_item2... ], it will break from the list and create a inconsistent layout with other if.
please think of every variable is with very long name
if a=b and c=d:
normally change to
if (
a=b
and c=d
):
but
if a=b and c in [d, e, f]:
it will change to
if a=b and c in [d,
e, f]:
Solution that I want to have
I hope that it will behave like other situation and become
if a=b
and c in [d, e, f]:
The text was updated successfully, but these errors were encountered: