Description
When using tab completion in IPython, it fails to correctly identify the object type when the cursor is after a comparison operator.
For example:
x = y = 'a' works correctly: x.<tab> shows string methods
But x == y.<tab> incorrectly shows boolean methods instead of string methods
Expected behavior
x == y.<tab> should complete with string methods for y
System Information
IPython version: 9.3.0
Operating system: Ubuntu