-
Notifications
You must be signed in to change notification settings - Fork 4
Issue 150 alternate #154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Issue 150 alternate #154
Conversation
…tions are wrapped in `Silently`
…t why it complains about the docstring formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're right, the other way is preferable. Thanks for doing the extra work for a side-by-side comparison!
val | ||
for action in self.try_performables | ||
if (val := get_additive_description(action)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: I have never used a walrus in a comprehension but honky bunks it works, pretty cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussion: That said, i think i don't like this side effect of doing the check in get_additive_description
. Seeing it in practice now makes me feel like the is_silent
approach is the correct one, so each description can decide for itself what to do about silenced ducks.
No description provided.