Skip to content

Support accessing __doc__ from cls #123

Open
@migeed-z

Description

@migeed-z
class Foo:
    @classmethod
    def foo(cls) -> None:
        cls.__doc__


Expectation: no type error
Actual:ERROR 4:9-20: Instance-only attributedocof classFoo is not visible on the class [missing-attribute]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions