X Tutup
Skip to content

Commit 4187a69

Browse files
nickbroonJohnVillalovos
authored andcommitted
fix: actually define project repr_attr
While `_repr_attr=` is given to specify the attribute to use to repr the object, that object attribute itself is not actually defined, so tools like PyRight/MyPy complain that: ``` Type of "path_with_namespace" is unknown ```
1 parent 1001d93 commit 4187a69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gitlab/v4/objects/projects.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ class Project(
178178
_repr_attr = "path_with_namespace"
179179
_upload_path = "/projects/{id}/uploads"
180180

181+
path_with_namespace: str
182+
181183
access_tokens: ProjectAccessTokenManager
182184
accessrequests: ProjectAccessRequestManager
183185
additionalstatistics: ProjectAdditionalStatisticsManager

0 commit comments

Comments
 (0)
X Tutup