The documentation states that get_num_template_arguments() is a member function of Cursor.
However, it is currently a member function of Cursor.type.
This should be mentioned in the documentation, as currently it seems Cursor.get_num_template_arguments() doesn't work as it (always?) returns -1.
The documentation states that get_num_template_arguments() is a member function of Cursor. However, it is currently a member function of Cursor.type. This should be mentioned in the documentation, as currently it seems Cursor.get_num_template_arguments() doesn't work as it (always?) returns -1.