types-croniter is a type stub package from the `typeshed` project, providing external type annotations for the `croniter` library. It enables static analysis tools like MyPy and Pyright to perform type checking on code that uses `croniter`, improving code quality and catching potential type-related errors before runtime. The current version, 6.2.2.20260402, is designed to provide accurate annotations for `croniter==6.2.2`. These packages are part of the `typeshed` project and are released frequently, often daily, through `typeshed`'s automated processes.
pip install types-croniterVerified import paths — ran on the pinned version, not inferred.
This example demonstrates basic usage of the `croniter` library with type hints. When `types-croniter` is installed, a static type checker like MyPy can use these stubs to validate the types passed to and returned by `croniter`'s functions and methods, catching potential type errors during development.
Ensure that the `types-croniter` package version aligns with the installed `croniter` package version, typically by pinning the major.minor.patch versions. Regularly update both packages.
Always install the `croniter` package (`pip install croniter`) in addition to `types-croniter` if you intend to run the code.
Explicitly install `types-croniter` using `pip install types-croniter`. MyPy might suggest the correct installation command in its error message. You can also run `mypy --install-types`.
Pin your stub package versions in your `requirements.txt` or `pyproject.toml` to the versions that are compatible with your codebase and type checker. Review typeshed's changelog for significant changes when upgrading.