-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor breadcrumb ordering and dictionary duplication handling
Simplified the breadcrumb ordering by removing the unnecessary key parameter. Refactored the 'distinct_by' function to raise an exception when no key field is present in the dictionary, instead of considering it as a non-duplicate. This change also simplifies the function by using a dictionary comprehension for uniqueness check, making it more efficient and readable. Updated corresponding tests to reflect these changes.
- Loading branch information
Showing
3 changed files
with
11 additions
and
35 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
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