Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken auto completion in some cases #889

Open
sebastinas opened this issue Mar 16, 2021 · 1 comment
Open

Broken auto completion in some cases #889

sebastinas opened this issue Mar 16, 2021 · 1 comment
Labels

Comments

@sebastinas
Copy link
Contributor

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.

@sebastinas sebastinas added the bug label Mar 16, 2021
@sebastinas
Copy link
Contributor Author

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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant