Repository

flake8-type-annotations

Validates type annotations syntax and is no longer required after pip install flake8-type-annotations def function(param=0, other: int = 0) -> int: · License MIT · Install via pip · Maintenance unmaintained

License
MIT
Error code
Description
T800
Missing spaces between parameter annotation and default value
T801
Missing spaces in return type annotation

Specs

  • Error codeDescription
  • T800Missing spaces between parameter annotation and default value
  • T801Missing spaces in return type annotation

README

flake8-type-annotations

wemake.services Build Status Coverage Python Version PyPI version

Validates type annotations syntax
as it was originally proposed
by Guido van Rossum.

Deprecated and is no longer required after flake8 >=3.7.
Not it is handled via E225 and E252 violation checks.

Installation

pip install flake8-type-annotations

Code example

# Consistency with this plugin:
def function(param=0, other: int = 0) -> int:
    return param + other


# Possible errors without this plugin:
def function(param=0, other: int=0)->int:
    return param + other

Error codes

Error code Description
T800 Missing spaces between parameter annotation and default value
T801 Missing spaces in return type annotation

License

MIT.