Skip to content

Infer return None in stubgen #4181

Closed
Closed
@czhang03

Description

@czhang03

Is it possible that when a function don't have any return statement, mypy can infer that the return type is None?

Both Pycharm and Typescript has this feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions