aleaxit / gmpy

General Multi-Precision arithmetic for Python 2.6+/3+ (GMP, MPIR, MPFR, MPC)
https://gmpy2.readthedocs.io/en/latest/
GNU Lesser General Public License v3.0
506 stars 84 forks source link

Deprecate local_context() and update contexts.rst #460

Closed skirpichev closed 7 months ago

skirpichev commented 7 months ago
skirpichev commented 7 months ago

@casevh, this should address #454.

Missing parts: 1) removal of CTXT_Manager_Type 2) change local_context -> context in tests 3) "Contexts and the with statement" section (probably should be part of the tutorial) 4) 1st paragraph of contexts.rst

codecov-commenter commented 7 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (2306188) 85.41% compared to head (7a40966) 85.51%. Report is 1 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #460 +/- ## ========================================== + Coverage 85.41% 85.51% +0.09% ========================================== Files 49 49 Lines 11727 11690 -37 Branches 2211 2211 ========================================== - Hits 10017 9997 -20 + Misses 1710 1693 -17 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

skirpichev commented 7 months ago

This is ready for review.

casevh commented 7 months ago

Thanks for the cleanup. I'll merge it later this evening.

skirpichev commented 7 months ago

Hmm, there are some uncovered lines. I'll add more tests.

skirpichev commented 7 months ago

Ok, there is no regressions in tests.