Commit 84ad3fd
fix(types): add explicit submodule import for pyright compatibility
Add `import gitlab.base` inside the TYPE_CHECKING block in
repositories.py so that pyright can resolve `gitlab.base.RESTObject`.
Without the explicit import, pyright cannot resolve the submodule
access via the parent package (implicit submodule access is a runtime
loader side effect that type checkers don't model). This caused
`_RestObjectBase` to be `Unknown`, propagating through `RepositoryMixin`
into `Project` and other classes.
Fixes #3342
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 4e01d33 commit 84ad3fd
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments