PyCQA / pyflakes

A simple program which checks Python source files for errors
https://pypi.org/project/pyflakes
MIT License
1.36k stars 178 forks source link

F821 for PEP695 ParamSpec #797

Closed AlexanderPodorov closed 8 months ago

AlexanderPodorov commented 8 months ago

The following example from official python docs shows warnings on flake8==6.1.0 (I believe vscode-flake8 extension ships with this version): See https://docs.python.org/3/library/typing.html#typing.ParamSpec image See the original issue https://github.com/microsoft/vscode-flake8/issues/271 for reference.

sigmavirus24 commented 8 months ago

Please do not post screenshots. They're not searchable or accessible. Can you confirm the version of pyflakes you're using with the vscode flake8 extension and which version of Python flake8/pyflakes is running in?

AlexanderPodorov commented 8 months ago

Hi, I'm sorry about posting a screenshot, I did not realize that. Microsoft's vscode flake8 extension version is v2023.11.13551006. It says it ships with flake8==6.1.0. I can't check pyflakes version unfortunately, since the extension does not provide any info about it. I filed this issue for pyflakes since flake8 docs says the following:

Error codes starting with F should be reported to pyflakes

Thanks!

asottile commented 8 months ago

looks like I missed paramspec and typevartuple -- not at a computer for a few days but I'll try and get to it when I am