Verifies python 3.7+ files use from __future__ import annotations
Project description
flake8-future-annotations
Verifies python 3.7+ files use from __future__ import annotations
if a type is used in the module that can be rewritten using PEP 563.
For example:
from typing import List
def main() -> None:
a_list: List[str] = []
a_list.append("hello")
could be rewritten as:
from __future__ import annotations
def main() -> None:
a_list: list[str] = []
a_list.append("hello")
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-future-annotations-0.0.2.tar.gz
.
File metadata
- Download URL: flake8-future-annotations-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b830c17a8f8ae42647593276a2fc6429284ab8c9e09716ca2312034d56113d6a |
|
MD5 | f539b20e733f4a7df82d3f2fc6da022c |
|
BLAKE2b-256 | 2e6c68b7a3059c573dc65f8737bcc1fb5222781360f30cfa14a73e2a868d02b8 |
File details
Details for the file flake8_future_annotations-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: flake8_future_annotations-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 355431b967f8bf6e6ea3a61d7a511d35e873fca312e7e74128d8514ad56fc12c |
|
MD5 | 2c918033c0b87ed384a5c58b6582de7f |
|
BLAKE2b-256 | b7bea903c6ff12084411902bc99ae73cc0a6fcb05c1a40d077023cb92d0ed797 |