Skip to content

Commit

Permalink
docs: update Query.captures documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bzero authored Oct 19, 2024
1 parent 7c7db77 commit 728a8d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tree_sitter/binding/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,9 @@ PyDoc_STRVAR(query_matches_doc,
PyDoc_STRVAR(query_captures_doc,
"captures(self, node, /, predicate=None)\n--\n\n"
"Get a list of *captures* within the given node.\n\n" DOC_RETURNS
"A list of tuples where the first element is the name of the capture and "
"the second element is the captured node." DOC_HINT "This method returns "
"all of the captures while :meth:`matches` only returns the last match.");
"A dict where the keys are the names of the captures and the values are "
"lists of the captured nodes." DOC_HINT "This method returns all of the"
"captures while :meth:`matches` only returns the last match.");
PyDoc_STRVAR(query_pattern_settings_doc,
"pattern_settings(self, index)\n--\n\n"
"Get the property settings for the given pattern index.\n\n"
Expand Down

0 comments on commit 728a8d2

Please sign in to comment.