Skip to content

Conversation

@nickbroon
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Jan 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.75%. Comparing base (1001d93) to head (0c15d50).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3330   +/-   ##
=======================================
  Coverage   95.75%   95.75%           
=======================================
  Files          98       98           
  Lines        6053     6054    +1     
=======================================
+ Hits         5796     5797    +1     
  Misses        257      257           
Flag Coverage Δ
api_func_v4 83.71% <100.00%> (-0.05%) ⬇️
cli_func_v4 78.67% <100.00%> (+<0.01%) ⬆️
unit 90.17% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
gitlab/v4/objects/projects.py 98.93% <100.00%> (+<0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nickbroon nickbroon force-pushed the nickb/repr_attribute branch from 0fdc9ee to 292601d Compare January 20, 2026 15:54
Copy link
Member

@JohnVillalovos JohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @nickbroon

LGTM

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
```
@JohnVillalovos JohnVillalovos enabled auto-merge (rebase) January 20, 2026 16:03
@JohnVillalovos JohnVillalovos merged commit 4187a69 into python-gitlab:main Jan 20, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants