cached-property icon indicating copy to clipboard operation
cached-property copied to clipboard

A decorator for caching properties in classes.

Results 62 cached-property issues
Sort by recently updated
recently updated
newest added

This PR updates [coverage](https://pypi.org/project/coverage) from **4.4.2** to **6.4.2**. Changelog ### 6.4.2 ``` -------------------------- - Updated for a small change in Python 3.11.0 beta 4: modules now start with a line...

This PR updates [pytest](https://pypi.org/project/pytest) from **3.8.2** to **7.1.2**. Changelog ### 7.1.2 ``` ========================= Bug Fixes --------- - `9726 <https://github.com/pytest-dev/pytest/issues/9726>`_: An unnecessary ``numpy`` import inside :func:`pytest.approx` was removed. - `9820 <https://github.com/pytest-dev/pytest/issues/9820>`_:...

Module cached_property.py, function `wrapper`, declared in line 42, uses decorator `@asyncio.coroutine`. It seems that the asyncio `@coroutine` decorator is **deprecated since Python 3.8**. Please use `async def` instead. Source code...

This PR updates [freezegun](https://pypi.org/project/freezegun) from **0.3.10** to **1.2.1**. Changelog ### 1.2.1 ``` ----- * Added missing typeshed types from distribution * Pass all arguments on recursive freeze_time calls ``` ###...

Python 3.11 drops the deprecated @asyncio.coroutine and asyncio.iscoroutinefunction. Using a wrapper with @asyncio.coroutine in `__get__` wasn't necessary (the future from asyncio.ensure_future is awaitable, and the wrapper doesn't do anything asynchronous),...

Based on [commit](https://github.com/pydanny/cached-property/commit/f7b6d211c6d1439253ee0ac01898731219bc27e6), we need to remove mention of Python2 at PyPI.

This will help remove ambiguity over what to use.

When the function decorated by `threaded_cached_property` raises an exception, rather than the exception from the user code being front-and-center, users are presented first with the cached property KeyError, only to...

Resolves #260 Uses similar approach to the `cached_property_with_ttl` decorator. Using the same example from #260 the exception no longer contains a `KeyError`: ```python Traceback (most recent call last): File "t.py",...