Skip to main content

Stubs package for Clang Python bindings

Project description

Have you used the Clang Python Bindings, but wanted type hints in your IDE? Have you ever wanted to use mypy tools on a project that uses Clang but gotten errors due to lack of type annotations? This package is a PEP 561 stub package which provides type information for Clang.

In other words, transform your IDE from:

https://raw.githubusercontent.com/tgockel/types-clang/trunk/doc/before.png

to:

https://raw.githubusercontent.com/tgockel/types-clang/trunk/doc/after.png

To utilize this, add it globally with:

pip3 install types-clang

Or add types-clang to dev-requirements.txt or pyproject.toml or whatever you use for dependency management.

Versioning

The published types-clang packages correspond with the type information of the {major}.{minor} of the clang package. The patch version of types-clang does not correspond with any patch version of clang, as they use semantic versioning correctly and will not add functionality in a patch release. So, if you install clang==13.0.1, then types-clang>=13.0, <13.1 will have the appropriate stubs.

Best practice is to write the version specification for types-clang to be the same as the clang package, but without the patch. For Poetry:

[tool.poetry.dependencies]
clang = "14.0"

[tool.poetry.dev-dependencies]
types-clang = "14.0"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

types-clang-0.14.3.tar.gz (8.6 kB view hashes)

Uploaded Source

Built Distribution

types_clang-0.14.3-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page