Skip to content

Conversation

Copy link

Copilot AI commented Feb 5, 2026

APIView feedback requested verification that CosmosDict remains in the root __init__.py since its removal would be incorrect.

Verification

APIView URL: https://spa.apiview.dev/review/c1c8a8095ae24413aa1bb1705a7c7b77?activeApiRevisionId=aa280dcff3c74b3cb2c3e0902c109359

Confirmed CosmosDict is correctly present in /sdk/cosmos/azure-cosmos/azure/cosmos/__init__.py:

  • Imported from ._cosmos_responses (line 23)
  • Exported in __all__ (line 68)
  • Return type for core operations: read_item, create_item, replace_item, upsert_item, patch_item

Status

LineNo Addressed? Summary
3354 ✅ Yes CosmosDict correctly present in root __init__.py. No changes needed - properly exposed in public API.

No code changes required. SDK is manually maintained (not code-generated), ensuring stable public API.

Original prompt

This section details on the original issue you should resolve

<issue_title>Address APIView feedback for azure-cosmos (Python)</issue_title>
<issue_description>Apply TypeSpec client customizations to address APIView feedback comments.

Current Task

Package Name: azure-cosmos
Language: Python
APIView URL: https://spa.apiview.dev/review/c1c8a8095ae24413aa1bb1705a7c7b77?activeApiRevisionId=aa280dcff3c74b3cb2c3e0902c109359

Feedback to Address

APIView Comments (1 unresolved)

LineNo Element LineText CommentText
3354 azure.cosmos.exceptions.CosmosAccessConditionFailedError class azure.cosmos.exceptions.CosmosAccessConditionFailedError(CosmosHttpResponseError): Ensure 'CosmosDict' remains listed in the root __init__.py since its removal appears incorrect.

Constraints

Output Requirements

  • If a Commit SHA is provided, use it as the base for your changes

  • Include the APIView URL in PR description

  • PR description MUST include a markdown table in EXACTLY this format (do not change column names):

    LineNo Addressed? Summary
    Brief description of changes (or "No action needed" if feedback says keep as-is)
    ⚠️ Reason not addressed (unclear info, TypeSpec limitation, needs SDK code customization)
  • Note: If a review comment CANNOT be addressed, explanation comments MUST NOT be added to the client.tsp file.
    ONLY explain in the "Summary" column why it could not be addressed.

  • Include SDK code customization guidance: https://github.com/Azure/autorest.python/blob/main/docs/customizations.md


Auto-generated by feedback customizations tool
</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Address APIView feedback for azure-cosmos Verify CosmosDict remains in root __init__.py per APIView feedback Feb 5, 2026
Copilot AI requested a review from swathipil February 5, 2026 01:30
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.

Address APIView feedback for azure-cosmos (Python)

2 participants