Why the Visual Studio Code recognizes `numpy.concatenate` as a variable?!
Both numpy.array and numpy.concatenate are functions in NumPy library, but the Visual Studio Code recognizes numpy.concatenate as a variable?!

- Language Server version: Pylance v2021.5.4
- OS and version: Windows 10 Pro, version 21H1
- Python version: Anaconda inside WSL, Python 3.9.1
If you right-click on concatenate and choose "Go To Declaration", you will see the reason for this. The numpy library ships with a type stub file (__init__.pyi) that provides a type annotation for this symbol, and it is annotated as a variable not a function.
The numpy maintainers are continuing to invest in improved type annotations, so I expect this will improve with upcoming releases of the library.
If you right-click on
concatenateand choose "Go To Declaration", you will see the reason for this. The numpy library ships with a type stub file (__init__.pyi) that provides a type annotation for this symbol, and it is annotated as a variable not a function.The numpy maintainers are continuing to invest in improved type annotations, so I expect this will improve with upcoming releases of the library.
Thank you for your help