FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: actually define project repr_attr · python-gitlab/python-gitlab@4187a69 · GitHub

Repository navigation

Commit 4187a69

Browse files
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

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL