Commit fec6133
committed
feat(shared): get_content_type as property, def_context_type from device_info — v0.3.0
- CameraShared.get_content_type() converted to @Property (no parentheses needed)
- update_shared_data now reads 'def_context_type' from device_info to initialise
image format via set_content_type() — no manual call required after init
- utils.py match statement updated to use property form (no parentheses)
- tests/test_shared_attributes.py assertions updated to property access
- tests/test.py device_info updated with 'def_context_type': 'png', manual
set_content_type() call removed
- Bump version 0.3.0b2 → 0.3.0 stable1 parent 81286a4 commit fec6133
3 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | | - | |
| 159 | + | |
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
393 | 394 | | |
394 | 395 | | |
395 | 396 | | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
396 | 400 | | |
397 | 401 | | |
398 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments