Skip to content

Tab completion fails with comparison operators #14897

@Darshan808

Description

@Darshan808

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions