I am trying to resolve issue that pycharm shows me warnings:
Cannot find reference 'x' in 'y'
for things from pygame.
Example:
Cannot find reference 'circle' in 'draw.py'
In "Settings > Project Interpreter > Interpreter Paths" I have:
...
/usr/local/lib/python3.5/dist-packages/
/usr/local/lib/python3.5/dist-packages/pygame-1.9.2b8-py3.5-linux-x86_64.egg
And I have pygame in this location.
What can I do to get rid of those warnings?
Edit:
import pygame
import time
pygame.init()
resolution = (200, 200)
screen = pygame.display.set_mode(resolution)
background = pygame.Surface(screen.get_size())
background.fill((255, 255, 255))
background = background.convert()
pygame.draw.circle(background, (0, 0, 0), (100, 100), 50, 2)
screen.blit(background, (0, 0))
pygame.display.flip()
time.sleep(5)
This code will show a black circle on white background and it works when run by python3.
However I get these warnings in pycharm:
4: Cannot find reference 'init' in '__init__.py'
6: Cannot find reference 'set_mode' in 'display.py'
10: Cannot find reference 'circle' in 'draw.py'
12: Cannot find reference 'flip' in 'display.py'