Make HASH/HASHXOF types immutable - #7131
Conversation
π WalkthroughWalkthroughThe changes add IMMUTABLETYPE flags to PyHasher and PyHasherXof class definitions in the hashlib module, marking them as immutable types. No behavioral or functional modifications are introduced; only class attribute flags are updated. Changes
Estimated code review effortπ― 1 (Trivial) | β±οΈ ~5 minutes Suggested reviewers
Poem
π₯ Pre-merge checks | β 2 | β 2β Failed checks (2 warnings)
β Passed checks (2 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing touches
π§ͺ Generate unit tests (beta)
βοΈ Resolve merge conflicts (beta)
No actionable comments were generated in the recent review. π Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
π¦ Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [ ] lib: cpython/Lib/hashlib.py dependencies:
dependent tests: (15 tests)
Legend:
|
Summary by CodeRabbit