Skip to content

Add .list() and .value() methods to entity attributes#1088

Merged
mdekstrand merged 5 commits intolenskit:mainfrom
mdekstrand:feature/attribute-methods
Apr 24, 2026
Merged

Add .list() and .value() methods to entity attributes#1088
mdekstrand merged 5 commits intolenskit:mainfrom
mdekstrand:feature/attribute-methods

Conversation

@mdekstrand
Copy link
Copy Markdown
Member

@mdekstrand mdekstrand commented Apr 24, 2026

This adds .list() and .value() methods to entity attributes, to improve convenience of easy access.

Also fixes some type-casting bugs with vocabulary ID types.

@mdekstrand mdekstrand added this to the 2026.2 milestone Apr 24, 2026
@mdekstrand mdekstrand self-assigned this Apr 24, 2026
@mdekstrand mdekstrand added the data Data management support. label Apr 24, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

❌ Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.48%. Comparing base (adb9361) to head (d1d7257).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/lenskit/data/_items.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1088      +/-   ##
==========================================
+ Coverage   89.45%   89.48%   +0.03%     
==========================================
  Files         231      231              
  Lines       15983    15994      +11     
==========================================
+ Hits        14298    14313      +15     
+ Misses       1685     1681       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mdekstrand mdekstrand merged commit d1d7257 into lenskit:main Apr 24, 2026
40 of 41 checks passed
@mdekstrand mdekstrand deleted the feature/attribute-methods branch April 24, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Data management support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant