With the [latest release](https://github.com/tree-sitter/py-tree-sitter/releases/tag/v0.23.0) they deprecated `keep_text` and `set_language`. So for updating it, we'd need to refactor this.
With the latest release they deprecated
keep_textandset_language. So for updating it, we'd need to refactor this.