Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

Keep simple walruses #533

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

tjs-intel
Copy link
Contributor

Originally #518

I think the walrus makes sense in a guard condition, ie.

if var := ...:
  # use var

I find additional logic after assignment creates too much complexity for a single expression.

@tjs-intel tjs-intel merged commit 75f5b72 into main Feb 26, 2024
62 of 63 checks passed
@tjs-intel tjs-intel deleted the pixeebot/drip-2024-02-20-pixee-python/use-walrus-if branch February 26, 2024 22:12
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.

2 participants