adriangb / xpresso

A composable Python ASGI web framework
https://xpresso-api.dev/
MIT License
176 stars 4 forks source link

feat: support context managers for extractors #95

Closed adriangb closed 2 years ago

adriangb commented 2 years ago

Use this feature to close files and forms automatically

codecov-commenter commented 2 years ago

Codecov Report

Merging #95 (c31f4a0) into main (5df6a45) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
+ Coverage   98.56%   98.57%   +0.01%     
==========================================
  Files         125      126       +1     
  Lines        4179     4218      +39     
  Branches      590      594       +4     
==========================================
+ Hits         4119     4158      +39     
  Misses         28       28              
  Partials       32       32              
Impacted Files Coverage Δ
xpresso/binders/_binders/file_body.py 100.00% <100.00%> (ø)
xpresso/binders/_binders/form_body.py 100.00% <100.00%> (ø)
xpresso/binders/_binders/union.py 92.18% <100.00%> (+2.60%) :arrow_up:
xpresso/binders/_binders/utils.py 100.00% <100.00%> (ø)
xpresso/binders/api.py 100.00% <100.00%> (ø)