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

See also https://code.djangoproject.com/ticket/29478#ticket ```python import itertools from cached_property import cached_property count = itertools.count() count2 = itertools.count() count3 = itertools.count() class Foo: @cached_property def __foo(self): return next(count) @cached_property def foo2(self): return...

help wanted

This PR updates [pytest](https://pypi.org/project/pytest) from **3.8.2** to **7.1.3**. Changelog ### 7.1.3 ``` ========================= Bug Fixes --------- - `10060 <https://github.com/pytest-dev/pytest/issues/10060>`_: When running with ``--pdb``, ``TestCase.tearDown`` is no longer called for tests...

This PR updates [coverage](https://pypi.org/project/coverage) from **4.4.2** to **6.4.4**. Changelog ### 6.4.4 ``` -------------------------- - Wheels are now provided for Python 3.11. .. _changes_6-4-3: ``` ### 6.4.3 ``` -------------------------- - Fix...

This PR updates [freezegun](https://pypi.org/project/freezegun) from **0.3.10** to **1.2.2**. Changelog ### 1.2.2 ``` ----- * Removes Python 3.6 support, which reached its EOL on 2021-12-23 (https://devguide.python.org/versions/?highlight=End-of-life#unsupported-versions). * Improved static typing definitions...

This PR updates [coverage](https://pypi.org/project/coverage) from **4.4.2** to **7.4.1**. Changelog ### 7.4.1 ``` - Python 3.13.0a3 is supported. - Fix: the JSON report now includes an explicit format version number, closing...

This PR updates [pytest](https://pypi.org/project/pytest) from **3.8.2** to **7.4.4**. Changelog ### 7.4.4 ``` ========================= Bug Fixes --------- - `11140 <https://github.com/pytest-dev/pytest/issues/11140>`_: Fix non-string constants at the top of file being detected as...

This PR updates [freezegun](https://pypi.org/project/freezegun) from **0.3.10** to **1.4.0**. Changelog ### 1.4.0 ``` ----- * `asyncio`-support from 1.3.x introduced quite a few bugs, so that functionality is now hidden behind a...

``` ========================================================================================== FAILURES ========================================================================================== _____________________________________________________________________ TestCachedPropertyWithTTL.test_threads_ttl_expiry ______________________________________________________________________ self = def test_threads_ttl_expiry(self): Check = CheckFactory(self.cached_property_factory(ttl=100000), threadsafe=True) check = Check() num_threads = 5 # Same as in test_threads check.run_threads(num_threads) self.assert_cached(check, num_threads) self.assert_cached(check,...