Conan type stubs
Project description
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-private
to fill up package, so everything resolves - model.conan_file is handcrafted and functions are documented with basic descriptions
- Selectable string values are annotated (e.g. all generators) and scm attribute is fully typehinted as typeddcit
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
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.0
Supported Python versions:
- minimum 3.8
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
conan-stubs-1.59.0a2.tar.gz
(92.7 kB
view hashes)
Built Distribution
conan_stubs-1.59.0a2-py3-none-any.whl
(197.3 kB
view hashes)
Close
Hashes for conan_stubs-1.59.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d91a35df4c69ebcc29c82faad4e8ebd4eebc2e86d07d85da9ae4ef3690f4e530 |
|
MD5 | 348aaa36ba6f994e2257ad4b891f458c |
|
BLAKE2b-256 | 98f501083baf035857da4cad5b7ac1000ed619612bc82737d43ea3bacc44af66 |