From 0c15d502bc3f31d7b085ff38da835b319a718609 Mon Sep 17 00:00:00 2001 From: Nick Brown Date: Tue, 20 Jan 2026 10:50:12 +0000 Subject: [PATCH] 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 ``` --- gitlab/v4/objects/projects.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py index 035b9b861..751ac4c1f 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -178,6 +178,8 @@ class Project( _repr_attr = "path_with_namespace" _upload_path = "/projects/{id}/uploads" + path_with_namespace: str + access_tokens: ProjectAccessTokenManager accessrequests: ProjectAccessRequestManager additionalstatistics: ProjectAdditionalStatisticsManager