I have a following python code, which contains both 4 space and 2 space indents.
class Foo(object):
def __init__(self,
flag = False):
if flag:
print("hello")
print("how are you?")
When I auto-indent the python code below with gg=G
, the above code becomes
class Model(object):
def __init__(self,
flag = False):
if flag:
print("hello")
print("how are you?")
The code is wrong because the last line should be under the if
block. Why is this happening?