3

I'd like to be able to run some linting that fails if my code uses

from typing import List
x: List[str]

instead of

x: list[str]

for example.

I currently use mypy, so ideally there'd be some way to achieve this with that.

UtterlyConfused
  • 983
  • 1
  • 10
  • 18
  • 1
    requesting tools is off topic as it attracts off-site and opinionated answers (for example, I'd shill my own `pyupgrade` which autofixes these, or potentially some flake8 plugins to check them) – anthony sottile Aug 01 '21 at 15:37

0 Answers0