dcf686857c
fix: use hashable types in frozenset test and add dict test
...
Frozensets can only contain hashable types, so use nested frozensets
instead of dicts. Added separate test for dict handling via serialize_cache_key.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-01-24 15:47:53 +05:30
17eed38750
fix: move _torch_available before usage and use importlib.util.find_spec
...
Fixes ruff F821 (undefined name) and F401 (unused import) errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-01-24 15:34:29 +05:30
f4623c0e1b
style: remove unused imports in test_cache_provider.py
...
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-01-24 14:25:00 +05:30
5e4bbca1ad
test: add unit tests for CacheProvider API
...
- Add comprehensive tests for _canonicalize deterministic ordering
- Add tests for serialize_cache_key hash consistency
- Add tests for contains_nan utility
- Add tests for estimate_value_size
- Add tests for provider registry (register, unregister, clear)
- Move json import to top-level (fix inline import)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2026-01-24 14:20:49 +05:30
dbd330454a
feat(preview): add per-queue live preview method override ( #11261 )
...
- Add set_preview_method() to override live preview method per queue item
- Read extra_data.preview_method from /prompt request
- Support values: taesd, latent2rgb, none, auto, default
- "default" or unset uses server's CLI --preview-method setting
- Add 44 tests (37 unit + 7 E2E)
2025-12-15 15:57:39 -08:00
4e402b11c6
Reland union type ( #5900 )
...
* Reapply "Add union link connection type support (#5806 )" (#5889 )
This reverts commit bf9a90a145 .
* Fix union type breaks existing type workarounds
* Add non-string test
* Add tests for hacks and non-string types
* Support python versions lower than 3.11
2024-12-04 15:12:10 -05:00
bf9a90a145
Revert "Add union link connection type support ( #5806 )" ( #5889 )
...
This reverts commit 8d4e06324f .
2024-12-03 13:06:34 -05:00
8d4e06324f
Add union link connection type support ( #5806 )
...
* Add union type support
* Move code
* nit
2024-12-03 05:46:00 -05:00