klen / pylama

Code audit tool for python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PEP 257 D402 triggers despite whitespace between function name and bracket.

Viech opened this issue · comments

The following code gives me a D402 (first line should not be the function's "signature"):

    def reshuffled(self, permutation="ikjl", dimensions=None, order="C"):
        """Return the reshuffled (or realigned) expression.

        […]
        """

I feel that the whitespace should be sufficient to not trigger the signature detection.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Thank you for the feedback. The issue needs to be forwarded to pydocstyle project.