InsightSoftwareConsortium / InsightSoftwareConsortium/ITK
BUG: Most ITK Python type hints do not show up in VS Code (Windows)
- Dominant language
- C++
- Stars
- 1.7k
- Forks
- 748
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 64
Description
### Description
[https://github.com/InsightSoftwareConsortium/ITK/pull/3444](https://github.com/InsightSoftwareConsortium/ITK/pull/3444) and its predecessors such as [https://github.com/InsightSoftwareConsortium/ITK/pull/3200](https://github.com/InsightSoftwareConsortium/ITK/pull/3200) were intended to introduce/improve type hints with the ITK Python package; however, only a subset of Pythonic type hints appear in VS Code using a pip-installed ITK package.
### Steps to Reproduce
1. `pip install itk`
2. Install VS Code with Python extensions, set Python interpreter
3. Create a new Python file
```py
import itk
itk.
```
4. View list of suggestions after `itk.` in line 2
### Expected behavior
Most/all values in `itk` namespace are viewable in list. For instance, `itk.Image`, `itk.join_series_image_filter`
### Actual behavior
Only functions/types defined in [https://github.com/InsightSoftwareConsortium/ITK/blob/master/Wrapping/Generators/Python/itk/support/extras.py](https://github.com/InsightSoftwareConsortium/ITK/blob/master/Wrapping/Generators/Python/itk/support/extras.py) or [https://github.com/InsightSoftwareConsortium/ITK/blob/master/Wrapping/Generators/Python/itk/support/types.py](https://github.com/InsightSoftwareConsortium/ITK/blob/master/Wrapping/Generators/Python/itk/support/types.py) appear to be represented in autocomplete suggestions
### Reproducibility
### Versions
ITK v5.3rc4, v5.3rc04.post1
### Environment
Windows 10
VS Code 1.62
EDIT: Per @PranjalSahu 's comment below this issue is also observed in VSCode on Linux.
### Additional Information
Contributor guide
Assessment
This issue has not been assessed yet.