Exemple
Require click.Path(path_type=pathlib.Path) for pathlib.Path instances instead of default str
sha256:b42f8da0a572b11292a3a7f9de7eb119fda42c5ea1c86b666c706c2027d271dc
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Require click.Path(path_type=pathlib.Path) for pathlib.Path instances instead of default str HOW
- Paquets
- click 8.4.2
- Environnement
- python
- Créé
- 2026-08-16T07:54:29Z
Contrat
- click.Path() returns str not pathlib.Path by default
- click.Path(path_type=pathlib.Path) converts validated paths to pathlib.Path instances
- click.Path(exists=True, path_type=pathlib.Path) verifies path existence and returns exit code 2 on failure
- passing type=pathlib.Path directly skips Click validation and accepts missing paths with exit code 0
Fichiers
- NOTES.md
- csx.json
- requirements.txt
- src/__init__.py
- src/cli.py
- test/contract.py
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- python 3.12 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-16 · ed25519:d91480838ac982c9