lf-lang / lf-python-support

Python package for supporting code generated by the Lingua Franca compiler
Other
5 stars 0 forks source link

Add a __str__ representation for Tag #14

Open Soroosh129 opened 2 years ago

Soroosh129 commented 2 years ago

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.