Azure / Azure/azure-sdk

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

Open
#9,913 0 comments 0 reactions 1 assignee Claimed by @tjprescott View on GitHub
customer-reported needs-triage question
Dominant language
PowerShell
Stars
597
Forks
374
Avg merge
5d 21h
Merged PRs (30d)
42

Description

Bad code snippet:
```Python
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:
```Python
geometry: Geometry,
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.