How can I disable pyright-extended?

Question:

As the title says I would like to disable the pyright-extended thing in replit.
Repl link/Link to where the bug appears:

if you fork this repl and look at the code, even though it works pyright-extended is complaining
here is the link
https://replit.com/@Minejerik/augh#main.py
Screenshots, links, or other helpful context:
image

import sys

import pygame
from pygame.locals import QUIT

pygame.init()
DISPLAYSURF = pygame.display.set_mode((400, 300))
pygame.display.set_caption('Hello World!')
while True:
   for event in pygame.event.get():
       if event.type == QUIT:
           pygame.quit()
           sys.exit()
   pygame.display.update()

this is just the default pygame example code.

You can put

# type: ignore

on line 1 of a file to disable pyright-extended for that file.
In newer python templates, code intelligence configuration is exposed in pyproject.toml.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.