falconry / falcon

The no-magic web data plane API and microservices framework for Python developers, with a focus on reliability, correctness, and performance at scale.
https://falcon.readthedocs.io/en/stable/
Apache License 2.0
9.51k stars 937 forks source link

chore(typing): add more descriptive typing to `Context` #2226

Closed vytas7 closed 5 months ago

vytas7 commented 5 months ago

This change affords arbitrary attribute access for req.context & resp.context in typed code without having to mask Mypy warnings similar to error: "Context" has no attribute "...".

codecov[bot] commented 5 months ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (7ec1d31) to head (4c4709f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2226 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 63 63 Lines 6930 6931 +1 Branches 1109 1109 ========================================= + Hits 6930 6931 +1 ```

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