Skip to content

Misleading return type when using merge_init_into_class #85

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__.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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