Your code is fine. This is because moved attributes and modules in six are loaded lazily, therefore PyCharm cannot resolve the reference.
See source code for class Module_six_moves_urllib_parse in six.py.
0
votes
I had the same problem, if you have six imported you can import queue as follows:
import six
import queue
It just worked for me, hope it works for you as well.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
movesis indeed present in the module. - dabadaba