Skip to content

Commit 68463c5

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

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

demo_code.py

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

8181

8282
def bad_isinstance(initial_condition, object, other_obj, foo, bar, baz):
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))):
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+
):
8995
pass
9096

9197

0 commit comments

Comments
 (0)