lf-lang / lf-lang/lf-python-support

Add a __str__ representation for Tag

Open
#14 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.