Python autopep8不修复任何缩进

Python autopep8不修复任何缩进,python,autopep8,Python,Autopep8,我有一个包含以下代码的文件test.py class MyClass(): y = 2 def my_func(self): x = 2 return(x) 当我运行pycodestyle test.py时 test.py:2:1: E112 expected an indented block test.py:2:1: E305 expected 2 blank lines after class or function definition, found 0 test.py:3:1: E3

我有一个包含以下代码的文件
test.py

class MyClass():
y = 2
def my_func(self):
x = 2
return(x)
当我运行
pycodestyle test.py

test.py:2:1: E112 expected an indented block
test.py:2:1: E305 expected 2 blank lines after class or function definition, found 0
test.py:3:1: E302 expected 2 blank lines, found 0
test.py:4:1: E112 expected an indented block
test.py:4:1: E305 expected 2 blank lines after class or function definition, found 0
但是,运行
autopep8 test.py
不会修复任何缩进。它回来了

class MyClass():


y = 2


def my_func(self):


x = 2
return(x)
我希望它会回来

class MyClass():

    y = 2

    def my_func(self):
        x = 2
        return(x)

我是否对autopep8期望过高?

这可能是autopep8的一个缺陷。你在github上查看过他们的问题跟踪程序吗?