adriangb / xpresso

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

BREAKING_CHANGE: rename Dependant -> Depends #53

Closed adriangb closed 2 years ago

adriangb commented 2 years ago

This save some characters in a critical area (using Annotated[..., Dependant(...)] can easily spill over the line length limit) and reduces the mismatch with FastAPI, which in theory makes it easier to port things over.

codecov-commenter commented 2 years ago

Codecov Report

Merging #53 (024fddd) into main (ae707ae) will decrease coverage by 0.08%. The diff coverage is 96.15%.

@@            Coverage Diff             @@
##             main      #53      +/-   ##
==========================================
- Coverage   97.46%   97.37%   -0.09%     
==========================================
  Files         181      181              
  Lines        5711     5711              
  Branches      674      674              
==========================================
- Hits         5566     5561       -5     
- Misses         98      103       +5     
  Partials       47       47              
Impacted Files Coverage Δ
...st_docs/advanced/dependencies/test_tutorial_004.py 100.00% <ø> (ø)
...st_docs/tutorial/dependencies/test_tutorial_001.py 100.00% <ø> (ø)
...st_docs/tutorial/dependencies/test_tutorial_002.py 100.00% <ø> (ø)
...st_docs/tutorial/dependencies/test_tutorial_003.py 100.00% <ø> (ø)
...st_docs/tutorial/dependencies/test_tutorial_004.py 100.00% <ø> (ø)
...st_docs/tutorial/dependencies/test_tutorial_006.py 100.00% <ø> (ø)
tests/test_responses/test_response_proxy.py 100.00% <ø> (ø)
tests/test_routing/test_mounts.py 100.00% <ø> (ø)
..._security/test_security_api_key_cookie_optional.py 100.00% <ø> (ø)
..._security/test_security_api_key_header_optional.py 100.00% <ø> (ø)
... and 28 more