Weak or improper support for overloads #5712
Labels
Duplicate 🐫
Duplicate of an already existing issue
False Negative 🦋
No message is emitted but something is wrong with the code
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
As requested by @DanielNoord , I'm creating this issue with some of the findings I commented about on another issue.
It seems like pylint either:
Consider the following base code:
Now, suppose I'm gonna use
Service.run_job
in some capacity. The comments expose the behaviour I expect pylint to have, including some comparison with mypy (but could be another linter; I used it as means to comparison, just to confirm if I was mistaken or not):Note that the problem here is the absence of output for some pretty obvious mistakes.
Configuration
# defaults; no custom config whatsoever
Command used
Pylint output
Expected behavior
Please, see the comments on
main
function's implementation.Pylint version
OS / Environment
Microsoft Windows 10 Enterprise (v. 10.0.18363 build 18363)
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: