-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pattern matching instead of cascading
if
/else
.
Python 3.10's `match` is more readable and efficient than multiple `if`/`else` blocks. PiperOrigin-RevId: 558234436
- Loading branch information
1 parent
636bfae
commit d4a30e9
Showing
1 changed file
with
34 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters