A flake8 plugin to ban type hints.
Project description
flake8-no-types
A flake8 plugin to ban type hints.
This can be useful in code bases where you aren’t running type checking (yet?) but developers or their IDE’s keep adding type hints that can end up being incorrect.
Installation
Install from pip with:
pip install flake8-no-types
Python 3.5-3.8 supported.
When installed it will automatically be run as part of flake8; you can check it is being picked up with:
$ flake8 --version
3.7.9 (flake8-no-types: 1.0.0, mccabe: 0.6.1, pycodestyle: 2.5.0, pyflakes: 2.1.1) CPython 3.8.0 on Darwin
Rules
NT001: No type hints.
Complains about all forms of type hints:
Function annotations: def foo() -> int:
Variable hints: foo: int = 1
History
1.0.0 (2019-11-19)
First release on PyPI.
NT001 rule that complains about type annotations.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file flake8-no-types-1.0.0.tar.gz
.
File metadata
- Download URL: flake8-no-types-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3073bac2dc7186b79f4cd674b5059edc60b6ce8a90d0711a33478dca506c04a5 |
|
MD5 | 48035b530249674dace277954359aeea |
|
BLAKE2b-256 | 38e5209aa25708be3ad5d530d2f4ec09dc1e411bb2dd1aacd4540010163212d6 |
File details
Details for the file flake8_no_types-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: flake8_no_types-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a718c6ad0f612973a2bebcc22a82da74480df37f00c4829c8806ba735a6140f6 |
|
MD5 | 4775b21e9a14fa2d118f5926624c26cb |
|
BLAKE2b-256 | 8ed0c2fb9f9a10d5218527b22380b17583b944e39cc7ad6bbc6bc2b3ec53143d |