python / typeshed

Collection of library stubs for Python, with static types
Other
4.31k stars 1.73k forks source link

Please suppress the Pyright errors in `builtins.pyi` #12680

Open tylerlaprade opened 3 hours ago

tylerlaprade commented 3 hours ago

Hi, I am getting 78 permanent errors any time I open up a Python project in VSCode. They are coming from builtins.pyi due to reportIncompatibleMethodOverride, reportPrivateUsage, and reportOverlappingOverload. I haven't found any way to ignore them in my pyrightconfig.json, and Eric Traut pointed me here.

image
JelleZijlstra commented 3 hours ago

Sorry to send you back and forth, but I feel this is a configuration issue in your type checker. If you're not working on typeshed itself, you shouldn't be seeing errors in the typeshed code.