Skip to content

Compatibility with click 8.2+#132

Open
stratakis wants to merge 3 commits intoclick-contrib:masterfrom
stratakis:click_compat
Open

Compatibility with click 8.2+#132
stratakis wants to merge 3 commits intoclick-contrib:masterfrom
stratakis:click_compat

Conversation

@stratakis
Copy link

Fixes #128

Click 8.2 auto-strips _cmd/_command/_group/_grp suffixes from
function-derived command names. Pin names with explicit name= parameters
so tests work across click versions.
Click 8.2 made Context.protected_args a read-only property, renaming
the underlying storage to _protected_args. Add compat helpers that
use the private attribute when available, falling back to the public
one for older click versions.
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.

Support Click 8.2.0 (fix AttributeError: property 'protected_args' of 'Context' object has no setter)

1 participant