E1101:Module 'turtle' has no 'forward' member
The turtle module exposes two interfaces, a functional one and an object-oriented one. The functional interface is derived programatically from the object-oriented interface at load time, so static analysis tools can't see it, thus your pylint
error. Instead of the functional interface:
import turtle
turtle.forward(100)
turtle.mainloop()
For which pylint
generates no-member
, try using the object-oriented interface:
from turtle import Screen, Turtle
screen = Screen()
turtle = Turtle()
turtle.forward(100)
screen.mainloop()
This particular import
for turtle blocks out the functional interface and I recommend it as folks often run into bugs by mixing both the OOP and functional interaces.