It seems that the version of pyflakes is not the latest when flake8 is installed

problem

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.

Solution

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

Why did you find this

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

It seems that the version of pyflakes is not the latest when flake8 is installed
Deep Learning! The story of the data itself that is read when it does not follow after handwritten number recognition
When incrementing the value of a key that does not exist
The story that the version of python 3.7.7 was not adapted to Heroku
The problem that the version of Vue CLI did not go up
When Selenium tells me that the Chrome driver version is different (Python)
Find out the name of the method that called it from the method that is python
The update of conda is not finished.
Tensorflow, it seems that even the eigenvalues of the matrix can be automatically differentiated
About the matter that softmax is not needed at the end of Torchvision model.
About the problem that the python version of Google App Engine does not mesh
Separately install a version of Python that is not pre-installed on your Mac
Hackathon's experience that it is most important to understand the feelings of the organizer
Use the latest version of PyCharm on Ubuntu
The value of pyTorch torch.var () is not distributed
It seems that unidic-lite is required in mecab-python3
It is said that libmysqlclient.so.18 does not exist
Try to find the probability that it is a multiple of 3 and not a multiple of 5 when one is removed from a card with natural numbers 1 to 100 using Ruby and Python.
It is a piggybacking story about the service that returns "Nyan" when you ping
[Solution] When inserting "0001" into the column of string in sqlite3, it is entered as "1".
[Python Data Frame] When the value is empty, fill it with the value of another column.
When "zipimport.ZipImportError: can't decompress data; zlib not available" appears when installing the version of pyenv
[Is it explosive !?] Setup for using the GPU version of Tensorflow on OS X
Solved the problem that MacVim installed by Homebrew was not built by python of pyenv
There is a pattern that the program did not stop when using Python threading
It seems that the module of train_test_split changes from 0.20, and Deprecation Warning appears at 0.18.
Install the latest version of CMake on Ubuntu 18.04.4 LTS
When the selected object in bpy.context.selected_objects is not returned
Note that the latest link of ius has changed
Check when the version does not switch with pyenv
The latest version of Pillow 7.0.0 will kill the pytorch transform.
When you think the update of ManjaroLinux is strange
Two solutions to the problem that it is hard to see the vector field when writing a vector field with quiver () of matplotlib pyplot
About the matter that nosetests does not pass when __init__.py is created in the project directory
[Python beginner] Variables and scope inside the function (when the processing inside the function is reflected outside the function and when it is not reflected)
How to delete "(base)" that appears in the terminal when Anaconda is installed on Mac
[VLC] How to deal with the problem that it is not in the foreground during playback
I want to output while converting the value of the type (e.g. datetime) that is not supported when outputting json with python
Put the latest version of Python on linux (Debian) on Chromebook
Grep so that grep does not appear at the time of grep
What is the default TLS version of the python requests module?
Install the latest version of Git on your Linux server
Numerical approximation method when the calculation of the derivative is troublesome
It is said that Fabric cannot get the status code in the middle of the pipe in the shell script.
Why is the floating point number of 0.1 larger than 0.1, but when added 10 times, it is smaller than 1.0 [Part 1]
Why is the floating point number of 0.1 larger than 0.1, but when added 10 times, it is smaller than 1.0 [Part 2]
Workaround for the problem that? Is displayed when checking the version when using non-standard perl | python with pkg version