Repository navigation
Commit 735e2cb
fix(tasks): add keys() and __contains__ to ComponentSpec
The test TestTTSTaskSpeakerEncoderOptional.test_build_with_speaker_encoder_attribute
called task.components.keys() which failed because ComponentSpec only exposed
.items() but not .keys().
Add keys() (returns output model names) and __contains__ (enables 'x' in spec)
to give ComponentSpec a consistent dict-like inspection API alongside .items().
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Justin Chu <[email protected]>1 parent da40c97 commit 735e2cb
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
92 | 100 | | |
93 | 101 | | |
94 | 102 | | |
| |||
0 commit comments