Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Update Index and IndexInterface docstrings with RST formatting and code examples#552

Merged
jhamon merged 1 commit intorelease-candidate/2025-10pinecone-io/pinecone-python-client:release-candidate/2025-10from
2025-11-17-2dvr-qZIokpinecone-io/pinecone-python-client:2025-11-17-2dvr-qZIokCopy head branch name to clipboard
Nov 17, 2025
Merged

Update Index and IndexInterface docstrings with RST formatting and code examples#552
jhamon merged 1 commit intorelease-candidate/2025-10pinecone-io/pinecone-python-client:release-candidate/2025-10from
2025-11-17-2dvr-qZIokpinecone-io/pinecone-python-client:2025-11-17-2dvr-qZIokCopy head branch name to clipboard

Conversation

@jhamon
Copy link
Collaborator

@jhamon jhamon commented Nov 17, 2025

Summary

This PR updates all docstrings for methods in the Index class and the underlying IndexInterface class to use proper RST syntax with comprehensive code-block examples.

Changes

  • Updated all Index class method docstrings with:

    • Proper RST formatting using Args/Returns/Examples sections
    • Comprehensive code-block examples showing different usage patterns
    • Proper whitespace formatting (empty lines after code blocks for Sphinx rendering)
  • Updated IndexInterface class docstrings to:

    • Match the Index class style and formatting
    • Use consistent RST formatting throughout
    • Include code-block examples for all methods
    • Remove old :param: and :type: syntax in favor of Args sections

Methods Updated

All methods in both classes now have complete, up-to-date docstrings:

  • upsert, upsert_from_dataframe, upsert_records
  • search, search_records
  • delete, fetch, fetch_by_metadata
  • query, query_namespaces
  • update, describe_index_stats
  • list, list_paginated
  • create_namespace, describe_namespace, delete_namespace
  • list_namespaces, list_namespaces_paginated
  • Import-related methods (start_import, list_imports, etc.)

Impact

  • Improved documentation quality and consistency
  • Better IDE support with comprehensive examples
  • Proper Sphinx rendering with correct whitespace formatting
  • All docstrings now follow RST best practices

@jhamon jhamon merged commit 53082f1 into release-candidate/2025-10 Nov 17, 2025
27 checks passed
@jhamon jhamon deleted the 2025-11-17-2dvr-qZIok branch November 17, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.