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

Not recognizing some functions in external libraries as a function #535

Closed
mahancoder opened this issue Oct 28, 2020 · 1 comment
Closed
Labels
duplicate This issue or pull request already exists

Comments

@mahancoder
Copy link

Environment data

  • Language Server version: v2020.10.2
  • OS and version: Windows 10 version 2004
  • Python version: 3.8.6

Problem

I am writing this code:

import numpy as np

array = np.arange(100)
print(array)

When I am typing np.arange It shows me arange with a variable icon instead of a function icon. also, it doesn't show anything when typing parentheses. when I hover over it, it shows (import) arange: Any to me. But when I run the code it gives me the correct output and when I try print(np.arange) it shows me <built-in function arange>. This problem happens with some other functions in external libraries. For example, it also happens with np.array. It seems that pylance isn't recognizing these as a function.

image

@jakebailey
Copy link
Member

Duplicate of #150.

@jakebailey jakebailey added the duplicate This issue or pull request already exists label Oct 28, 2020
@github-actions github-actions bot removed the triage label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants