I have a problem I'm working in Pycharm with Pygames and when I try to pygame.image.load() it doesn't work and keep telling me that it cannot find 'load' in image.py. I redownloaded the pygame package and it still doesn't work. Please help me.
Pycharm reports: Cannot find reference 'load' in 'image.py', when using pygame.image.load(). The code breaks when trying to execute this command.
import pygame
pygame.init()
surface = pygame.display.set_mode((1200, 720))
my_image = pygame.image.load('maxresdefault.bmp')
run = True
while run:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            run = False
    surface.fill((188, 22, 22)
    surface.blit(my_image, (0, 0))
    pygame.display.update()
pygame.quit()
After redownloading the Pygame package, the issue persists.