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
Close
Hashes for flake8-future-annotations-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b830c17a8f8ae42647593276a2fc6429284ab8c9e09716ca2312034d56113d6a |
|
MD5 | f539b20e733f4a7df82d3f2fc6da022c |
|
BLAKE2b-256 | 2e6c68b7a3059c573dc65f8737bcc1fb5222781360f30cfa14a73e2a868d02b8 |
Close
Hashes for flake8_future_annotations-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 355431b967f8bf6e6ea3a61d7a511d35e873fca312e7e74128d8514ad56fc12c |
|
MD5 | 2c918033c0b87ed384a5c58b6582de7f |
|
BLAKE2b-256 | b7bea903c6ff12084411902bc99ae73cc0a6fcb05c1a40d077023cb92d0ed797 |