Skip to content

None is accepted as a type but it behaves erratically #299

@JukkaL

Description

@JukkaL

The following fragment generates a confusing error message:

def f(x: None) -> None:
    x.f()   # Function does not return a value

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions