D
D
DollyPapper2020-05-17 16:57:15
Python
DollyPapper, 2020-05-17 16:57:15

Are Flake8 and PEP484 friendly?

Good afternoon community! Tell me, I don’t understand something, VSCode does not work as it should, or flake8 does not support type annotations. There are two lines

a: int
a = "String"

Then I set flake8 on the file with this code and it doesn’t tell me anything about the fact that, dude, you have the int annotation specified and you pass the string. What's the matter here?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DollyPapper, 2020-05-17
@DollyPapper

The question is removed, it was necessary to immediately go to Google.
By default, flake8 does not support annotations, you need to deliver the package separately
pip install flake8-annotations

D
Dr. Bacon, 2020-05-17
@bacon

flake8 was confused with mypy, or a plugin for it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question