Skip to main content

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"

Metadata

Release files for types-clang 0.14.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for types-clang 0.14.3
File Size Uploaded
types-clang-0.14.3.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for types-clang 0.14.3
File Interpreter ABI Platform
types_clang-0.14.3-py3-none-any.whl Python 3 none any Details

Total release size: 16.4 kB

Release files / types-clang-0.14.3.tar.gz

Download URL types-clang-0.14.3.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d0a093530f763f56e563ed7be79937308a4bdc4a5aa2be195615ac746b4dedec
BLAKE2b-256 checksum
How to use checksums
4da9a2edb5cefd1d50a033054724ed150fcb17d1e9c7150fde72fd96c714877b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.6 Linux/5.15.0-60-generic

Release files / types_clang-0.14.3-py3-none-any.whl

Download URL types_clang-0.14.3-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b52a7258bbf69b1376594fb0fad1bef526de9f6c4ed27cabd382557ac3896c2
BLAKE2b-256 checksum
How to use checksums
c80d81718cf5ad04ba420f01fbc4caa390a12c7c3136962bed1e8493ac3d5a11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.10.6 Linux/5.15.0-60-generic

Release history Release notifications | RSS feed

This release

0.14.3 This release

2 release files

0.14.2

2 release files

0.14.1

2 release files

0.14.0

2 release files

0.13.3

2 release files

0.13.2

2 release files

0.12.3

2 release files

0.12.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page