False positive "[TypedDict instance] is not callable" #4715
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Needs astroid Brain 🧠
Needs a brain tip in astroid (then an astroid upgrade)
typing
Milestone
Steps to reproduce
Given a file
a.py
:Current behavior
Result of
pylint a.py
:Expected behavior
This should not be an error.
TypedDict
is a subclass ofdict
, so line 4 is equivalent todict(href="foo")
. The code also runs fine and passesmypy --strict a.py
.pylint --version output
Result of
pylint --version
output:The text was updated successfully, but these errors were encountered: