Commit 62c0823
committed
Consolidate str and os.PathLike[str] (use GitPython's PathLike)
Where they had been introduced and written separately in 0e1df29
before this.
The main reason is that it would have to be quoted as a string
for compatibility with Python 3.8 and lower, since os.PathLike
only defined __class_getitem__ in 3.8 and later. (The definition
in git.types already does that.) In addition, the benefit of
keeping them separate was negligible, as mentioned in 0e1df29.1 parent 0e1df29 commit 62c0823
2 files changed
+4
-5
lines changed| 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 | | |
| |||
| 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