Skip to content

When I omit the "return", mypy does not check #2033

Closed

Description

@DKXXXL
def p(a:int)->int:
    b = a+1
k = p(1)

p should be "int -> None"
mypy 0.4.3 said nothing

Activity

  1. gvanrossum commented on Aug 17, 2016

    @gvanrossum
    Member

    Yeah, that's a known issue. I believe it can only be resolved after we implement strict optional checking. Until then, this is probably the relevant issue, and I'm going to close you as a duplicate:
    #1748

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions