Commit 9d3d695
authored
enhancement: raise notimplementederror on single index rather than random error (#450)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> Explicitly raises NotImplementedError when single-indexing
`TextRegions`; adds a skipped test, updates changelog, and bumps version
to 1.1.1.
>
> - **Elements**:
> - `unstructured_inference/inference/elements.py`: Single-element
indexing of `TextRegions` now raises `NotImplementedError` in `slice()`
(used by `__getitem__`).
> - **Tests**:
> - `test_unstructured_inference/test_elements.py`: Adds a skipped test
covering single-element access expectations.
> - **Release**:
> - `__version__` bumped to `1.1.1`.
> - `CHANGELOG.md`: Notes the new `NotImplementedError` behavior for
single indexing.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
64b9438. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent f8bf10d commit 9d3d695
File tree
4 files changed
+36
-1
lines changed- test_unstructured_inference
- unstructured_inference
- inference
4 files changed
+36
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
593 | 593 | | |
594 | 594 | | |
595 | 595 | | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
| |||
0 commit comments