Commit cdb274f
committed
textframe(fix): Make TextFrameExtension import conditional
why: Users without libtmux[textframe] get ImportError on capture_frame()
what:
- Wrap TextFrameExtension import in try/except ImportError
- Only add to __all__ when syrupy is available
- Core TextFrame functionality works without optional dependency1 parent d335fc9 commit cdb274f
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments