GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||
GeezerVison is showing github.com — Require a parameter name to be a non-keyword Python identifier by kdeldycke · Pull Request #3827 · pallets/click Conversation
|
|
Both of these seem like bugs. I feel like the automatic names should always be normalized and pass |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
254d9e4 to
49a5f5a
Compare
OK cool, that was also my feeling. We don't want special treatments of the |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
49a5f5a to
ad8601c
Compare
Argument name to be a Python identifier
@davidism Done. I did not pushed the normalization too much. So there is one bothering difference between |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Argument name to be a Python identifierArgument name to be a Python identifier
05c4439 to
3d4142f
Compare
Argument name to be a Python identifierArgument and Option automatic naming
|
I just pushed the alignment and normalization of naming a bit more and updated the differences in the body of that PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3d4142f to
b4606f9
Compare
Argument and Option automatic namingb4606f9 to
ff79a3c
Compare
|
OK these were my final edits. You can review this PR. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ff79a3c to
6f9943e
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I agree with @davidism. The docs are too verbose and these changes should go through normal deprecation process. Probably a best course of action is to make a pr against stable that has whatever tests you think we should have to lock in existing behavior. Then can merge stable into main. And you can make the new pr against main with the deprecations.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ahah agreed 100% about the verbosity of the docs. They accumulates all my changes and discovery through the process of producing this PR. It was a way for me to highlight how clunky the ID derivation is at the moment. My thinking being that if I can write the docs easily and make them flow naturally, it probably means the underlying concept and implementation is clean. Ok for a 9.0.0 target then. What I will do:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
6f9943e to
127ed65
Compare
Problem is the list of Python keywords would prevent some options like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
OK so I think I am done with this PR and it now implements the ideal target behavior for 9.0.0. I will now create in the next few days a sibling PR for 8.5.1/8.6.0 that detects the changes and emits deprecation warnings. If I discover new stuff while producing this other PR I might bring some changes here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Click 9.0 refuses such a name; warn a release ahead so the break can diffuse. Prepares the ground for #3827, as promised in pull/3827#issuecomment-5583963038.
Click 9.0 refuses such a name; warn a release ahead so the break can diffuse. Prepares the ground for pallets#3827, as promised in pull/3827#issuecomment-5583963038.
Prepares the ground for pallets#3827 and future 9.0.0 release
Prepares the ground for pallets#3827 and future 9.0.0 release
127ed65 to
0054c44
Compare
Prepares the ground for pallets#3827
Prepares the ground for pallets#3827
0054c44 to
3dcde39
Compare
3dcde39 to
d8a0c46
Compare
Make `DeprecationWarning` from pallets#3866 into `TypeError`
d8a0c46 to
1652ae5
Compare
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Missing auto-generated environment variables in help screen & case-sensitivity
There was an error while loading. Please reload this page.