Repository navigation
Commit bed457d
committed
fix: retain the typing Union compatibility import
Demisto SDK imports `Union` from `git` while registering validators. Released
GitPython exposes `typing.Union`; removing that incidental export prevents
its unchanged root test conftest and CLI command registration from importing.
Retain the explicit alias without changing wildcard exports or adding Git
behavior. This unblocks the existing caller while preserving the narrower
package namespace elsewhere.
The import regression failed before this change. All 35 downstream
compatibility cases pass on CLI and Gix. Ruff lint/format, mypy for
`git/__init__.py`, and `git diff --check` pass. Released GitPython 3.2.1
was force-installed and verified in site-packages for the downstream baseline.1 parent 4b2a7fc commit bed457d
3 files changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| |||
0 commit comments