Skip to main content

flake8 plugin which checks use of deprecated typing.List, typing.Dict, etc.

Project description

flake8-wot

Flake8 plugin

This plugin warns if you are still importing List, Dict or Tuple (and others) from typing instead of using list, dict, tuple.

See https://www.python.org/dev/peps/pep-0585/ for more information.

Example

Running flake on a file test_wot.py with contents:

from typing import List

will generate:

test_wot.py:1:1: WOT001 don't import type List

WOT is an abbreviation of 'Warn about Old school Types'

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

flake8_wot-0.2.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

flake8_wot-0.2.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page