KEMBAR78
Flag to disallow partially annotated functions · Issue #3742 · python/mypy · GitHub
Skip to content

Flag to disallow partially annotated functions #3742

@ilinum

Description

@ilinum

It would be useful to have a flag to disallow partially annotated functions.

It would work something like this:

def f(i: int):  # error: Missing type annotation
  pass

def g(i):  # no error
  pass

def h(i: int) -> None:  # no error
  pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions