-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🚸 Support .add with an an iterable of strings * 🚸 Allow instantiation with arguments * 🚸 Enable method chaining off .add * 🚸 Implement __eq__ * 🚸 Implement __add__ and __iadd__ * ✅ Add tests for operators and chaining * 📝 Update Trie documentation * 🐛 Remove f-string for backwards compatibility * 🐛 Remove f-string for backwards compatibility * ✅ Add tests for type guards on + and += * 🩹 Improve type guard for += Co-authored-by: ddelange <[email protected]> * ♻️ Reimplement __add__, __iadd__, and _merge * ✅ Update tests for Trie * ♻️ Simplify == implementation * ⏪ Revert a6339c4 * 🎨 Reorganize test cases for Trie * 🧪 Add tests for unwanted RHS sub-dict mutation after += * ✅ Prevent unwanted sub-dict propagation in __iadd__ --------- Co-authored-by: ddelange <[email protected]>
- Loading branch information
Showing
3 changed files
with
111 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
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