Commit 39274da
refactor: Use modern Python type alias for StringOrInt in build_context
Replace Union[int, str] with cleaner StringOrInt type alias using modern
Python 3.12+ type statement syntax. This improves code readability while
maintaining the same functionality for string-to-integer conversion in
the depth parameter.
Changes:
- Add StringOrInt type alias using modern type statement
- Update depth parameter annotation to use StringOrInt
- Maintains all existing string conversion and validation logic
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Joe P <joe@basicmemory.com>1 parent b4d8fa9 commit 39274da
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | | - | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments