Closed pavoljuhas closed 10 months ago
I opened a PR for this: https://github.com/quantumlib/Cirq/pull/6398.
I closed the first one because it was committed with the wrong e-mail address (and making a dummy commit with the right e-mail still failed the CLA, so I figured opening a new PR was simpler).
Description of the issue
cirq uses an internal version of cached_property defined here to support earlier versions of Python.
https://github.com/quantumlib/Cirq/blob/d33b1a71ac9721e762a2fa1b9e9871edfe187a3c/cirq-core/cirq/_compat.py#L64-L67
As of #6167 we require Python 3.9 which is guaranteed to have functools.cached_property.
We can therefore replace all instances of
_compat.cached_property
withfunctools.cached_property
and remove thecached_property
definition from the _compat.py.Cirq version
1.4.0 at d33b1a71ac9721e762a2fa1b9e9871edfe187a3c