aio-libs / propcache

Fast property caching
Apache License 2.0
7 stars 1 forks source link

Add import compat layer to __init__ #24

Closed bdraco closed 2 weeks ago

bdraco commented 2 weeks ago

What do these changes do?

Add import compat layer to init so the public API can continue to be imported at top level

Are there changes in behavior for the user?

Restores the ability to import from top-level

Related issue number

18

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 94.44444% with 2 lines in your changes missing coverage. Please review.

Project coverage is 86.56%. Comparing base (b762a3c) to head (8f21e75). Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/propcache/__init__.py 85.71% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #24 +/- ## ========================================== + Coverage 85.98% 86.56% +0.57% ========================================== Files 20 21 +1 Lines 678 722 +44 Branches 50 57 +7 ========================================== + Hits 583 625 +42 - Misses 68 69 +1 - Partials 27 28 +1 ``` | [Flag](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | Coverage Δ | | |---|---|---| | [CI-GHA](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `86.28% <94.44%> (+0.59%)` | :arrow_up: | | [MyPy](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `68.67% <66.66%> (-0.25%)` | :arrow_down: | | [OS-Linux](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `98.87% <100.00%> (+0.13%)` | :arrow_up: | | [OS-Windows](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `93.77% <100.00%> (+0.92%)` | :arrow_up: | | [OS-macOS](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `96.99% <100.00%> (+0.36%)` | :arrow_up: | | [Py-3.10.11](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `96.61% <100.00%> (+0.41%)` | :arrow_up: | | [Py-3.10.15](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `98.12% <100.00%> (+0.23%)` | :arrow_up: | | [Py-3.11.10](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `98.12% <100.00%> (+0.23%)` | :arrow_up: | | [Py-3.11.9](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `96.61% <100.00%> (+0.41%)` | :arrow_up: | | [Py-3.12.6](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.71% <100.00%> (+0.23%)` | :arrow_up: | | [Py-3.13.0-rc.3](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `97.71% <100.00%> (+0.23%)` | :arrow_up: | | [Py-3.8.10](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `96.61% <100.00%> (+0.41%)` | :arrow_up: | | [Py-3.8.18](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `98.12% <100.00%> (+0.23%)` | :arrow_up: | | [Py-3.9.13](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `96.61% <100.00%> (+0.41%)` | :arrow_up: | | [Py-3.9.20](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `98.12% <100.00%> (+0.23%)` | :arrow_up: | | [Py-pypy7.3.11](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.11% <100.00%> (+0.72%)` | :arrow_up: | | [Py-pypy7.3.16](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.11% <100.00%> (+0.72%)` | :arrow_up: | | [Py-pypy7.3.17](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `95.11% <100.00%> (+0.72%)` | :arrow_up: | | [VM-macos-latest](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `96.99% <100.00%> (+0.36%)` | :arrow_up: | | [VM-ubuntu-latest](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `98.87% <100.00%> (+0.13%)` | :arrow_up: | | [VM-windows-latest](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `93.77% <100.00%> (+0.92%)` | :arrow_up: | | [pytest](https://app.codecov.io/gh/aio-libs/propcache/pull/24/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs) | `98.69% <100.00%> (+0.13%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=aio-libs#carryforward-flags-in-the-pull-request-comment) to find out more.

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