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:
to:
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file types-clang-0.14.3.tar.gz
.
File metadata
- Download URL: types-clang-0.14.3.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.6 Linux/5.15.0-60-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0a093530f763f56e563ed7be79937308a4bdc4a5aa2be195615ac746b4dedec |
|
MD5 | 6563c5f33a594408f87ccab702806ad5 |
|
BLAKE2b-256 | 4da9a2edb5cefd1d50a033054724ed150fcb17d1e9c7150fde72fd96c714877b |
File details
Details for the file types_clang-0.14.3-py3-none-any.whl
.
File metadata
- Download URL: types_clang-0.14.3-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.10.6 Linux/5.15.0-60-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b52a7258bbf69b1376594fb0fad1bef526de9f6c4ed27cabd382557ac3896c2 |
|
MD5 | f00a1a08331c085e2a3364ffe90eb911 |
|
BLAKE2b-256 | c80d81718cf5ad04ba420f01fbc4caa390a12c7c3136962bed1e8493ac3d5a11 |