pyre-check icon indicating copy to clipboard operation
pyre-check copied to clipboard

Pyre generates a lot of false positives like "Undefined or invalid type [11]: Annotation XXX is not defined as a type."

Open PVMPATCH opened this issue 3 years ago • 2 comments

Use this to open other questions or issues, and provide context here.

Pyre generates a lot of false positives like "Undefined or invalid type [11]: Annotation XXX is not defined as a type." Why can't Pyre recognize some of the most basic types such as str, list, dict?

Are there bugs in this? I want to know how to avoid such false positives

PVMPATCH avatar Oct 12 '22 06:10 PVMPATCH

屏幕截图 2022-10-12 144518

PVMPATCH avatar Oct 12 '22 06:10 PVMPATCH

@PVMPATCH Did you set the location of typeshed correctly?

WangGithubUser avatar Aug 31 '23 12:08 WangGithubUser