Skip to content

Misleading return type when using merge_init_into_class #85

@monosans

Description

@monosans

Currently, when merge_init_into_class and show_signature_annotations are enabled, the class signature looks like None is returned when the class is called, which looks strange and misleading:

SomeClass() -> None 

The simplest solution seems to be hiding the return type for classes. The ideal solution is to take the return type from __new__.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions