Commit 122b25c
committed
fix(wrap): declare pyyaml as a core dependency
`headroom wrap omp` lazily imports yaml to parse and merge omp's
models.yml registry, but pyyaml was never declared, so a bare
`pip install headroom-ai` (no extras) fails at wrap time with
ModuleNotFoundError. Dev and test environments masked this: pyyaml
arrives transitively through dev/ml extras (pre-commit, transformers).
CI surfaced it as the lint failure on the merge commit: the lint job
installs no project dependencies, so mypy flags the yaml import as
import-untyped (typeshed publishes stubs for it).
- pyproject.toml: add pyyaml>=6.0 to core dependencies
- uv.lock: surgically add pyyaml to the headroom-ai dependencies and
requires-dist metadata (same approach as headroomlabs-ai#2011; a full `uv lock`
regeneration would undo that PR's intel-mac torch guard)
- omp/runtime.py: annotate the import with type: ignore[import-untyped]
following the psutil precedent (the lint env installs no deps)1 parent f268e48 commit 122b25c
3 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments