Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python IndentationError when class method has decorator #114

Open
MarcelRobitaille opened this issue Jul 14, 2019 · 2 comments
Open

Python IndentationError when class method has decorator #114

MarcelRobitaille opened this issue Jul 14, 2019 · 2 comments

Comments

@MarcelRobitaille
Copy link

Copying the sample code from the fix in e2aa007 and adding a decorator to the class method results in an IndentationError. My code is now as follows:

from unittest.mock import patch


class Test(object):

    def __init__(self):
        pass

    @patch()
    def an_empty_line_above_this(self):

        return 'No worry about the blank lines'


if __name__ == '__main__':

    print('blank lines are cool, now PEP8 lint stop warning about it’s absence.')

And I get the following errors:
image

Here is a minimal vimrc that will reproduce the issue:

call plug#begin('~/.vim/plugged')
Plug 'metakirby5/codi.vim'
call plug#end()

Environment

@metakirby5
Copy link
Owner

@heshiyou Any thoughts?

@iamgodot
Copy link

Are we having expectation on this fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants