Skip to content

Commit ffb4bab

Browse files
style: format code with Black, ISort and Yapf
This commit fixes the style issues introduced in 2d44d54 according to the output from Black, ISort and Yapf. Details: #49
1 parent 2d44d54 commit ffb4bab

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

demo_code.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,12 @@ def tar_something():
8080

8181

8282
def bad_isinstance(initial_condition, object, other_obj, foo, bar, baz):
83-
if (
84-
initial_condition
85-
and (
86-
isinstance(object, int)
87-
or isinstance(object, float)
88-
or isinstance(object, str)
89-
)
90-
and isinstance(other_obj, float)
91-
and isinstance(foo, str)
92-
or (isinstance(bar, float) or isinstance(bar, str))
93-
and (isinstance(baz, float) or isinstance(baz, int))
94-
):
83+
if (initial_condition and
84+
(isinstance(object, int) or isinstance(object, float)
85+
or isinstance(object, str)) and isinstance(other_obj, float)
86+
and isinstance(foo, str)
87+
or (isinstance(bar, float) or isinstance(bar, str)) and
88+
(isinstance(baz, float) or isinstance(baz, int))):
9589
pass
9690

9791

0 commit comments

Comments
 (0)