You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pyvista has some partial typings, but no py.typed marker or stubs, so mypy is not able to recognize the type hints in the subpackages that have them since pyvista is not PEP-561 compliant.
* feat(typehinting): add `py.typed` marker to package
This will allow static type checkers to recognized the package's type hints per PEP-561
Fixes issue #2903
* fix(package-data): add `py.typed` to `package_data`
* Add newline to end of py.typed
* feat(setuptools): add type hint files to `MANIFEST.in` and set `zip_safe=False`
`mypy` requires packages built with `setuptools` use the `zip_safe=False` option so it can find the package and `*.pyi` and `*.typed` files be added to the `MANIFEST.in` so they are included in the `sdist`.
See https://mypy.readthedocs.io/en/latest/installed_packages.html#creating-pep-561-compatible-packages
* Add newline to end of MANIFEST.in
Co-authored-by: Hendry, Adam <adam.hendry@medtronic.com>
Co-authored-by: Andras Deak <deak.andris@gmail.com>
Describe the feature you would like to be added.
pyvista
has some partial typings, but nopy.typed
marker or stubs, somypy
is not able to recognize the type hints in the subpackages that have them sincepyvista
is notPEP-561
compliant.It would be great to add a
py.typed
marker to the package: Creating PEP 561 compatible packagesNB:
For
PyQt5
, stubs are available as a pip package:For
PyQt6
, they can be downloaded from this GitHub repo:For
PySide2
, they can be downloaded from pip:and for
PySide6
, the package ships with a scriptpyside6-genpyi
that generates the stubs:As for
PyQt4
, andPySide
, I do not know as those are pretty old.Links to VTK Documentation, Examples, or Class Definitions.
No response
Pseudocode or Screenshots
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: