Commit 1b8eae4
fix: resolve mypy 2.3 errors in strings.py and test_datasource.py
- strings.py: cast tostring() return value to T since mypy 2.3 no longer
accepts bytes as compatible with TypeVar T constrained to str|bytes
- test_datasource.py: add explicit `import unittest.mock` since mypy 2.3
no longer resolves submodule attributes through the parent import
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 56b0ba4 commit 1b8eae4
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
0 commit comments