Skip to content

[AVC] Update python filter#15519

Open
tjprescott wants to merge 1 commit intomainfrom
avc/update-python-filter-20260506
Open

[AVC] Update python filter#15519
tjprescott wants to merge 1 commit intomainfrom
avc/update-python-filter-20260506

Conversation

@tjprescott
Copy link
Copy Markdown
Member

Filter additions based on a review of feedback collected during April 2026.

Rule 24 added: DO NOT suggest typing model parameters as Union[ModelType, Mapping[str, Any]] in generated code. Generated models type parameters with the model class only; dict-input flexibility is handled at runtime, not in the type signature.

Evidence: 2 downvoted comments (OutdatedGuideline) from annatisch on the Planetary Computer SDK review. The python-models-input-dict guideline does not apply to generated code type annotations.

Copilot AI review requested due to automatic review settings May 6, 2026 17:15
@tjprescott tjprescott added the APIView Copilot Issues related to APIView Copilot label May 6, 2026
@tjprescott tjprescott self-assigned this May 6, 2026
@tjprescott tjprescott requested a review from annatisch May 6, 2026 17:15
@github-project-automation github-project-automation Bot moved this to 🆕 New in APIView May 6, 2026
@tjprescott tjprescott moved this from 🆕 New to 👀In PR in APIView May 6, 2026
@tjprescott tjprescott added this to the 2026-06 milestone May 6, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the APIView Copilot Python review filter to incorporate April 2026 feedback, preventing suggestions that conflict with Azure SDK for Python generated-code typing patterns.

Changes:

  • Added a new filter exception (Rule 24) to avoid suggesting Union[ModelType, Mapping[str, Any]] for generated model parameters, aligning with generated SDK type signatures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

APIView Copilot Issues related to APIView Copilot

Projects

Status: 👀In PR

Development

Successfully merging this pull request may close these issues.

2 participants