Commit 8e4055e
committed
refactor: Import concrete BatchResult instead of protocol
Change __init__.py to import BatchResult from concurrency.models
(concrete implementation) rather than from types (protocol definition).
This provides users with the actual class implementation for better
IDE support and type checking.
The protocol remains in types.py for internal type checking, while
the public API exports the concrete dataclass implementation.1 parent 06de905 commit 8e4055e
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
5 | 7 | | |
6 | 8 | | |
7 | 9 | | |
| |||
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| |||
0 commit comments