Unexpected false-positive "no-value-for-parameter" from type stubs 'hidden' under 'if TYPE_CHECKING:' #8689
Labels
Documentation 📗
inference
Needs specification 🔐
Accepted as a potential improvement, and needs to specify edge cases, message names, etc.
typing
Bug description
This may not be a bug in pylint, so possibly can just be closed but as I just burned a bunch of time figuring it out, I'm raising it here.
When type stubs for a function that needs to be decorated are hidden under a TYPE_CHECKING, pylint seems to get unhappy with them- when they're in separate files, it can be a bit puzzling until one notices the issue is actually with the type stub.
Configuration
No response
Command used
Pylint output
Expected behavior
I was expecting no complaints, but I'm not sure if that was a reasonable expectation. It might've been nice to have more indication as to where the failing function call was (as this would've immediately pointed me at the type stub), but I'm not sure how feasible that is.
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: