Skip to content

Using cls as a function breaks highlighting for arguments #52

@aldanor

Description

@aldanor

This is a quite common snippet:

@classmethod
def from_foo(cls, foo):
    return cls(foo, bar='baz')

However it breaks highlighting for arguments inside () since cls is not treated as a function.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions