You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for bothering, just started using Lark, and see missing pieces (as of my taste). Handy API already made many packages super-popular (like click, requests etc.)
Suggestion
Add new method
Tree.find_type(typ: str) -> Iterator[Token]
as a companion forTree.find_data()
:Describe alternatives you've considered
Right now this can be achieved by
which doesn't fit Black's line width and will look even uglier in real cases.
Additional context
I can provide PR if you find this enhancement reasonable.
The method proposed seems to be a logical extension of existing API:
The text was updated successfully, but these errors were encountered: