pip install pyflakes
pip install flake8
Now when you do flake8 --version
3.4.1 (mccabe: 0.6.1, pycodestyle: 2.3.1, pyflakes: 1.5.0) CPython 3.6.2 on Darwin
Will be. The latest pyflakes
is 1.6.0
In fact,
root@a0241303ada3:/# pip install pyflakes
Collecting pyflakes
Downloading pyflakes-1.6.0-py2.py3-none-any.whl (227kB)
100% |████████████████████████████████| 235kB 1.0MB/s
Installing collected packages: pyflakes
Successfully installed pyflakes-1.6.0
root@a0241303ada3:/# pip install flake8
Collecting flake8
Downloading flake8-3.4.1-py2.py3-none-any.whl (68kB)
100% |████████████████████████████████| 71kB 1.0MB/s
Collecting mccabe<0.7.0,>=0.6.0 (from flake8)
Downloading mccabe-0.6.1-py2.py3-none-any.whl
Collecting pyflakes<1.6.0,>=1.5.0 (from flake8)
Downloading pyflakes-1.5.0-py2.py3-none-any.whl (225kB)
100% |████████████████████████████████| 225kB 941kB/s
Collecting pycodestyle<2.4.0,>=2.0.0 (from flake8)
Downloading pycodestyle-2.3.1-py2.py3-none-any.whl (45kB)
100% |████████████████████████████████| 51kB 3.1MB/s
Installing collected packages: mccabe, pyflakes, pycodestyle, flake8
Found existing installation: pyflakes 1.6.0
Uninstalling pyflakes-1.6.0:
Successfully uninstalled pyflakes-1.6.0
Successfully installed flake8-3.4.1 mccabe-0.6.1 pycodestyle-2.3.1 pyflakes-1.5.0
When I install flake8
, pyflakes-1.6.0
is uninstalled.
pip install flake8
pip install pyflakes -U
pip install package -U
Or
pip install package --upgrade
You can update the package with, so put pyflakes in flake8 and then update
When I was playing with CI, I was getting a lint error fixed in pyflakes-1.6.0
, so I thought it was strange.
By the way, this
from typing import Optional
class A:
def __init__(self):
self.v: Optional[int] = None
At this time, I get angry that pyflakes-1.5.0
does not use Optional.
Fixed in pyflakes-1.6.0
Recommended Posts