-
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(*): dedup while keeping order using dict.fromkeys()
Previously, I was not in favor of the approach because it was a quite new feature in Python 3.7+ (CPython 3.6+). Newness always means confusion to some extent. But it is no longer a new feature after all these years. So I am going to adopt such an elegant approach. Signed-off-by: Rongrong <i@rong.moe>
- Loading branch information
1 parent
84bd8bc
commit 386fd42
Showing
2 changed files
with
3 additions
and
3 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
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