Skip to content

Conversation

@sirosen
Copy link
Contributor

@sirosen sirosen commented May 19, 2025

This uses get_metavar as an example, demonstrates how to feature-detect based on
kwargs containing "ctx", and shows simplified usage.
A note block indicates how this same strategy applies to other ParamType methods.

Section naming is setup to support:

  • future documentation of other version transitions
  • documentation of other transitional methods for 8.1 vs 8.2

There are lots of details here on which I have no particularly strong opinion (e.g., precise doc name or section names), and am happy to work through feedback.

sirosen and others added 2 commits May 20, 2025 21:56
This uses `get_metavar` as an example, demonstrates how to feature-detect based on
`kwargs` containing `"ctx"`, and shows simplified usage.
A note block indicates how this same strategy applies to other ``ParamType`` methods.

Section naming is setup to support:
- future documentation of other version transitions
- documentation of other transitional methods for 8.1 vs 8.2
@davidism davidism changed the base branch from main to stable May 21, 2025 02:51
@davidism
Copy link
Member

I converted this to Markdown since we now have myst-parser available. Then did some further editing. Added a link to our version policy, and a general description of feature detection.

@davidism davidism merged commit 2d610e3 into pallets:stable May 21, 2025
2 checks passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2025
@kdeldycke kdeldycke added this to the 8.2.2 milestone Aug 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants