not-an-iterable
and unsubscriptable-object
false positives with @overload method
#8634
Labels
Duplicate 🐫
Duplicate of an already existing issue
Bug description
I'm having two errors
not-an-iterable
andunsubscriptable-object
with the code below:pyright does not throw any errors with the code written in
test_1
. So pyright is able to figure out the proper return types thanks to the different@overload
.But pylint raises some errors in
test_2
, even though the code runs well.I am not sure if it's a pylint bug, or if I didn't
@overload
the methodmy_method
properly.Thanks
Configuration
No response
Command used
Pylint output
Expected behavior
pylint should not raise those errors since pyright can identify the return types properly, and the test_2 passes
Pylint version
OS / Environment
macos
Additional dependencies
pyright==1.1.293
The text was updated successfully, but these errors were encountered: