Skip to content

Force return statement check #590

@jacqueswww

Description

@jacqueswww

What's your issue about?

Currently you can have a return type set on a function, yet omit the return statement. Add a exception when this happens forcing the programming to add a return, if specified.

e.g.

@public
def foo() -> num:
        pass

How can it be fixed?

Off the top of my head, check parse_func.

Cute Animal Picture

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions