lf-lang / lf-lang/lf-python-support
Add a __str__ representation for Tag
Open
Nobody has claimed this yet.
enhancement
good first issue
- Dominant language
- Python
- Stars
- 5
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
It would be nice if we could simply write
print(f"Current tag is: {lf.tag()}")
and get a properly formatted output.
This would require implementing the __str__ method for the Tag type.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Tag type and the lf.tag() entry point in the Python support package, then inspect how tags are currently represented. Done means implementing str so the provided f-string prints a properly formatted current tag.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100