I'm learning pygame and my app runs without no problem but for some reason VS Code gives me an error. How can I get rid of it?
Here's the python code:
import pygame, sys
pygame.init()
screen = pygame.display.set_mode((1280,720))
clock = pygame.time.Clock()
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
pygame.display.update()
clock.tick(120)
By the way, here's the error message: Module 'pygame' has no 'init/QUIT/quit' member