I want to code with pybricks and so far, everything worked, except of the Motor class. I use Visual Studio Code. This are the imports:
from pybricks.hubs import EV3Brick
from pybricks.ev3devices import ColorSensor
from pybricks.ev3devices import Motor
from pybricks.parameters import Port
Everything but the Motor is marked green Image of the imports, and I can't see all the methods for the motor. All other classes work fine. It seems to be an error with intellisense or it isn't imported correctly. Does anyone know how to fix this?
Edit: I now got to try this problem on another computer and I got the same result. Maybe it's a problem with the package or Intellisense does, for some reason, not recognise the motor class?
Try using pybricks-stubs using
pip3 install pybricks-stubs
https://pypi.org/project/pybricks-stubs/