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.
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.