Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork944
Commit62c0823
committed
Consolidate str and os.PathLike[str] (use GitPython's PathLike)
Where they had been introduced and written separately in0e1df29before this.The main reason is that it would have to be quoted as a stringfor compatibility with Python 3.8 and lower, since os.PathLikeonly defined __class_getitem__ in 3.8 and later. (The definitionin git.types already does that.) In addition, the benefit ofkeeping them separate was negligible, as mentioned in0e1df29.1 parent0e1df29 commit62c0823
2 files changed
+4
-5
lines changedLines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
| |||
100 | 99 |
| |
101 | 100 |
| |
102 | 101 |
| |
103 |
| - | |
104 |
| - | |
| 102 | + | |
| 103 | + | |
105 | 104 |
| |
106 | 105 |
| |
107 | 106 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
645 | 645 |
| |
646 | 646 |
| |
647 | 647 |
| |
648 |
| - | |
649 |
| - | |
| 648 | + | |
| 649 | + | |
650 | 650 |
| |
651 | 651 |
| |
652 | 652 |
| |
|
0 commit comments
Comments
(0)