- Notifications
You must be signed in to change notification settings - Fork673
Commit233b79e
committed
chore: explicitly import gitlab.v4.objects/cli
As we only support the v4 Gitlab API, explicitly importgitlab.v4.objects and gitlab.v4.clie instead of dynamically importingit depending on the API version.This has the added benefit of mypy being able to type check the Gitlab__init__() function as currently it will fail if we enable typechecking of __init__() it will fail.Also, this also helps by not confusing tools like pyinstaller/cx_freeze withdynamic imports so you don't need hooks for standalone executables. Andaccording tohttps://docs.gitlab.com/ee/api/, "GraphQL co-exists with the current v4 REST API. If we have a v5 API, this should be a compatibility layer on top of GraphQL."1 parent5cc60d5 commit233b79e
2 files changed
+29
-10
lines changedLines changed: 13 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 | 22 |
| |
24 | 23 |
| |
25 | 24 |
| |
| |||
158 | 157 |
| |
159 | 158 |
| |
160 | 159 |
| |
161 |
| - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
162 | 163 |
| |
163 |
| - | |
| 164 | + | |
164 | 165 |
| |
165 | 166 |
| |
166 | 167 |
| |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
167 | 172 |
| |
168 | 173 |
| |
169 | 174 |
| |
| |||
181 | 186 |
| |
182 | 187 |
| |
183 | 188 |
| |
184 |
| - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
185 | 192 |
| |
186 | 193 |
| |
187 |
| - | |
| 194 | + | |
188 | 195 |
| |
189 | 196 |
| |
190 | 197 |
| |
| |||
229 | 236 |
| |
230 | 237 |
| |
231 | 238 |
| |
232 |
| - | |
| 239 | + | |
233 | 240 |
| |
234 | 241 |
|
Lines changed: 16 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
20 | 19 |
| |
21 | 20 |
| |
22 | 21 |
| |
| |||
99 | 98 |
| |
100 | 99 |
| |
101 | 100 |
| |
102 |
| - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
103 | 109 |
| |
104 | 110 |
| |
105 | 111 |
| |
| |||
147 | 153 |
| |
148 | 154 |
| |
149 | 155 |
| |
150 |
| - | |
151 |
| - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
152 | 164 |
| |
153 | 165 |
| |
154 | 166 |
| |
|
0 commit comments
Comments
(0)