Skip to main content

flake8-type-annotations

wemake.services Build Status Coverage Python Version PyPI version

This tool is used to validate type annotations syntax as it was originally proposed by Guido van Rossum.

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.

Release files for flake8-type-annotations 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flake8-type-annotations 0.1.0
File Size Uploaded
flake8-type-annotations-0.1.0.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flake8-type-annotations 0.1.0
File Interpreter ABI Platform
flake8_type_annotations-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / flake8-type-annotations-0.1.0.tar.gz

Download URL flake8-type-annotations-0.1.0.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
88775455792ad7bbd63a71bc94e8a077deb5608eacb5add7e5a7a648c7636426
BLAKE2b-256 checksum
How to use checksums
06e26c006b0be107a05bd18c628fcb375a0385324945e3b83e134d1fc6b11bdb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.11.2 CPython/3.6.5 Darwin/15.6.0

Release files / flake8_type_annotations-0.1.0-py3-none-any.whl

Download URL flake8_type_annotations-0.1.0-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
de64de5efef3277d7b6012e8618c37d35b21465fb16292e46e6eec5b87e47a8c
BLAKE2b-256 checksum
How to use checksums
04e40ccc501ccadb718d8f71e70ccc9912a3266619008384b8773de787fa7c31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.11.2 CPython/3.6.5 Darwin/15.6.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page