The error I am having is as follows: ModuleNotFoundError: No module named 'pygame.rect'
I traced the error back to sprite.py(a pygame file) which is trying to import the file rect.py. This is my file path:
File path
The file circled in white is the file trying to import ‘rect.py’. The only similar file I could find was the file ‘rect.pyi’ circled in red.
This is the code trying to import ‘rect.py’: from pygame.rect import rect
I tried changing ‘rect.pyi’ to ‘rect.pyi’ and that created a mess of errors. Am I missing a file, or something like that?