diff --git a/python/demo_code.py b/python/demo_code.py index 5e502b20..5daddc96 100644 --- a/python/demo_code.py +++ b/python/demo_code.py @@ -115,11 +115,7 @@ def tar_something(): def bad_isinstance(initial_condition, object, other_obj, foo, bar, baz): if ( initial_condition - and ( - isinstance(object, int) - or isinstance(object, float) - or isinstance(object, str) - ) + and isinstance(object, (int, float, str)) and isinstance(other_obj, float) and isinstance(foo, str) or (isinstance(bar, float) or isinstance(bar, str))