Unable to ignore pyflakes error/warnings

Bug description:
Unable to use #type: ignore to silence pyflakes

Expected vs Current Behavior:
pyflakes does not raise an error
pyflakes raises an error

Steps to reproduce:
Create a global var (that is defined way out of scope with exec), and it raises an error

then try to ignore it with #type: ignore

Bug appears at this link: https://replit.com/@derpygamer2142/Python-Eval-Bot#modules/fake_module.py

Screenshot(s)/Screen Recording:
image

(the code shown to be working)
image

Browser/OS/Device: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36

Replit Profile: https://replit.com/@showierdata9971

You should make a feature request for it.

1 Like

Type ignoring in python is only for mypy, which isn’t something we use.

1 Like