Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Adds support for immutable Trees #13

Merged
merged 9 commits into from Mar 26, 2022
Merged

Adds support for immutable Trees #13

merged 9 commits into from Mar 26, 2022

Conversation

cgarciae
Copy link
Owner

@cgarciae cgarciae commented Mar 24, 2022

Changes

  • Adds an Immutable mixin that can make Trees effectively immutable (as far as python permits).
  • Immutable contains the .replace and .mutable methods that let you manipulate state in a functionally pure fashion.
  • Adds the mutable function transformation / decorator which lets you turn function that perform mutable operation into pure functions.

@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2022

Codecov Report

Merging #13 (3b92407) into master (ee4936f) will increase coverage by 1.35%.
The diff coverage is 98.21%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   89.92%   91.27%   +1.35%     
==========================================
  Files           6        6              
  Lines         645      711      +66     
==========================================
+ Hits          580      649      +69     
+ Misses         65       62       -3     
Impacted Files Coverage Δ
treeo/api.py 91.58% <94.44%> (+1.17%) ⬆️
treeo/tree.py 94.84% <98.48%> (+1.12%) ⬆️
treeo/__init__.py 100.00% <100.00%> (ø)
treeo/mixins.py 85.36% <100.00%> (+5.36%) ⬆️
treeo/utils.py 91.66% <100.00%> (+0.36%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@cgarciae cgarciae changed the title Immutable Mixin Adds support for immutable Trees Mar 26, 2022
@cgarciae cgarciae merged commit 9ae87f1 into master Mar 26, 2022
@cgarciae cgarciae deleted the immutable branch March 30, 2022 16:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants