Commit a2a5bc0
Fix type annotation in upload sync path prefix calculation
Replace incorrect use of reduce() with direct os.path.commonprefix() call.
The original code used reduce() incorrectly - os.path.commonprefix() already
accepts a list of paths and returns the longest common prefix.
This removes one type: ignore comment and improves code clarity.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent a3dd9f9 commit a2a5bc0
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
493 | 492 | | |
494 | 493 | | |
495 | 494 | | |
496 | | - | |
| 495 | + | |
497 | 496 | | |
498 | 497 | | |
499 | 498 | | |
| |||
0 commit comments