Skip to content

[Python Guidelines] Model parameters are still documented as accepting dict-like inputs #9913

@azure-sdk-automation

Description

@azure-sdk-automation

Bad code snippet:

geometry: Geometry,

What it should do:
The current Python guideline says parameters typed as model instances should also accept dict-like inputs, but this is now out of date for generated code in azure-planetarycomputer. The generated signature is expected to type the parameter as the model type only, not as a union with Mapping.

Good code snippet:

geometry: Geometry,

Metadata

Metadata

Assignees

Labels

customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-triageWorkflow: This is a new issue that needs to be triaged to the appropriate team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions