adriangb / di

Pythonic dependency injection
https://www.adriangb.com/di/
MIT License
301 stars 13 forks source link

feat: support Python 3.7 #24

Closed adriangb closed 3 years ago

adriangb commented 3 years ago

3.7 works w/ typing_extensions.

3.6 would be a PITA: we're missing contextlib pieces and contextvars altogether. Plus it's EOL in 2 months.

netlify[bot] commented 3 years ago

✔️ Deploy Preview for xenodochial-agnesi-66605a ready!

🔨 Explore the source changes: 8375776d4441428fd1f5d67ae180b1445d9b3435

🔍 Inspect the deploy log: https://app.netlify.com/sites/xenodochial-agnesi-66605a/deploys/615b30aaca81bf00071038a1

😎 Browse the preview: https://deploy-preview-24--xenodochial-agnesi-66605a.netlify.app/binds

codecov-commenter commented 3 years ago

Codecov Report

Merging #24 (083851f) into main (693bb52) will increase coverage by 0.04%. The diff coverage is 100.00%.

:exclamation: Current head 083851f differs from pull request most recent head 8375776. Consider uploading reports for the commit 8375776 to get more accurate results

@@            Coverage Diff             @@
##             main      #24      +/-   ##
==========================================
+ Coverage   97.82%   97.86%   +0.04%     
==========================================
Files          55       56       +1     
Lines        1653     1689      +36     
Branches      211      211              
==========================================
+ Hits         1617     1653      +36     
Misses         18       18              
Partials       18       18              
Impacted Files Coverage Δ
di/_inspect.py 91.80% <ø> (ø)
tests/test_get_flat_dependencies.py 100.00% <ø> (ø)
di/dependant.py 100.00% <100.00%> (ø)
di/types/dependencies.py 100.00% <100.00%> (ø)
di/types/executor.py 100.00% <100.00%> (ø)
di/types/solved.py 100.00% <100.00%> (ø)
docs/src/bind_as_a_dep.py 100.00% <100.00%> (ø)
docs/src/gather_deps_example.py 94.87% <100.00%> (+0.13%) :arrow_up:
tests/docs/test_gather_deps_example.py 100.00% <100.00%> (ø)
tests/docs/test_sharing_example.py 100.00% <100.00%> (ø)
... and 4 more