This release is a pre-release and may not be stable for production use.
Conan-stubs: Type stubs for Conan
Type stubs for specific conan versions for authoring Conanfiles. Versions of this package will correspond to the corresponding conan minor version.
- Generated with mypy via
stubgen -p conans --include-privateto fill up package, so everything resolves - model.conan_file is handcrafted and functions are documented with basic descriptions
- Selectable string values are annotated and scm attribute is fully type hinted as TypedDict
Why use type stubs instead of the bundled pylint plugin?
- Only usable with pylint, which is very unperformant and newer tools as Ruff can not work with this
- Methods are still missing (e.g. tool_requires)
- No autocomplete from pylint
Limitations
- tool_requires, build_requires, requires are annotated with only their function signature
- settings are annotated by their setter information for the class variable
- Every annotation is in the file, but commented out
- See https://github.com/python/mypy/issues/3004 and https://github.com/microsoft/pylance-release/issues/1735
Details
Methods which also can be used as class variables can not be annotated directly:
...
tool_requires = "cmake/3.25.3"
def build_requirements(self):
self.tool_requires("cmake/3.25.3")
The annotation would look like this with a property plus method, but can not be interpreted:
@property
@overload
def tool_requires(self) -> None: ...
@overload
def tool_requires(self, requirement: str, force_host_context: bool=False) -> None: ...
@tool_requires.setter
def tool_requires(self, value: Optional[Iterable[str]]): ...
Supported conan versions:
- 1.59
Supported Python versions:
- minimum 3.8
Metadata
Release files for conan-stubs 1.59.0a4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| conan-stubs-1.59.0a4.tar.gz | 93.1 kB | Without provenance | Details for conan-stubs-1.59.0a4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| conan_stubs-1.59.0a4-py3-none-any.whl | Python 3 | none | any | Details for conan_stubs-1.59.0a4-py3-none-any.whl |
Total release size: 290.5 kB
Release files / conan-stubs-1.59.0a4.tar.gz
| Download URL | conan-stubs-1.59.0a4.tar.gz |
|---|---|
| Size | 93.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdc1a13b2e271cf43f4c370c6765163d324aa95499c4472c56b6530e2144db75
|
|
BLAKE2b-256 checksum How to use checksums |
9d5a130f06770d4398b2e96b7abf5b43d24897b219f542342b05a62fe5405619
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / conan_stubs-1.59.0a4-py3-none-any.whl
| Download URL | conan_stubs-1.59.0a4-py3-none-any.whl |
|---|---|
| Size | 197.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4d63e9b34f3a33e97c0121e464cd4c7a17fb69c64910197238ee3f1717e33037
|
|
BLAKE2b-256 checksum How to use checksums |
2b714aecd329abf4eed4403e4f93008f01add42c7fd8c326b4b53381a59b3b7c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Security for conan-stubs 1.59.0a4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.