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

Automatic Parentheses Beta Feature Adds Parentheses to Function Imports #320

Closed
JosephTLyons opened this issue Sep 3, 2020 · 1 comment
Assignees
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@JosephTLyons
Copy link

JosephTLyons commented Sep 3, 2020

  • Language Server version: v2020.9.0
  • OS and version: macOS 10.15.6
  • Python version: Python 3.8.5

Expected behaviour

I expect Pylance to not add parentheses to function imports

Actual behaviour

With Complete Function Parens enabled, parentheses are added to function imports. If I typed from math import sqr then chose sqrt from the autocomplete list, the result is from math import sqrt()

@github-actions github-actions bot added the triage label Sep 3, 2020
@judej judej added the bug Something isn't working label Sep 4, 2020
@github-actions github-actions bot removed the triage label Sep 4, 2020
@jakebailey jakebailey added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label Nov 3, 2020
@jakebailey
Copy link
Member

This issue has been fixed in version 2020.11.0, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/master/CHANGELOG.md#2020110-4-november-2020

br3ndonland added a commit to br3ndonland/dotfiles that referenced this issue Dec 11, 2021
- `"python.analysis.typeCheckingMode": "off"` (using mypy instead)
- `"python.analysis.completeFunctionParens": false` (don't automatically
  add parentheses after function or class names - this snippet expansion
  is particularly bothersome when adding type annotations)
  - microsoft/pylance-release#287
  - microsoft/pylance-release#320
- Turn off insiders channel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

4 participants