Skip to content

Broken auto completion in some cases #889

Open

Description

@sebastinas

This is a follow up to #726. In this specific case, the signature of Qt.QtWidget.setfocusPolicy as recognized by bpython is Qt.QtWidget.setFocusPolicy(self, Qt.FocusPolicy) where Qt.FocusPolicy denotes a type. So on Qt.<Tab> bpython expected the user to auto complete the argument Qt.FocusPolicy and offers Qt.FocusPolicy=. This is wrong.

Activity

  1. sebastinas commented on Mar 16, 2021

    @sebastinas
    ContributorAuthor

    This essentially affects builtin functions where the documentation is used to get function signature. In a similar way, the auto completion for print is also somewhat broken since it has a signature of (value, ..., sep=' ', end='\n', fle=sys.stdout, flush=False).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions