Skip to content

Allow a callable default to have its own string representation#2100

Merged
davidism merged 1 commit into
pallets:8.0.xfrom
pocek:issue-2099
Dec 28, 2021
Merged

Allow a callable default to have its own string representation#2100
davidism merged 1 commit into
pallets:8.0.xfrom
pocek:issue-2099

Conversation

@pocek
Copy link
Copy Markdown
Contributor

@pocek pocek commented Oct 12, 2021

As it was before 78a62b3.

A callable can also be an object with __call__ and __str__ defined, in which case it makes sense to use it. Don't try too hard to show something else instead, because the developer most likely knows what he (or she) is doing.

Fixes #2099

@davidism davidism added this to the 8.0.4 milestone Dec 28, 2021
As it was before 78a62b3.

A callable can also be an object with __call__ and __str__ defined, in
which case it makes sense to use it. Don't try too hard to show something
else instead, because the developer most likely knows what he (or she) is
doing.

#2099
@davidism davidism changed the base branch from main to 8.0.x December 28, 2021 19:00
@davidism davidism merged commit 6987b4c into pallets:8.0.x Dec 28, 2021
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No way to alter dynamic default value help text representation

2 participants