From 6e15143deb0652b7a5c28f314e9a92a9971ad20b Mon Sep 17 00:00:00 2001 From: Pavol Juhas Date: Sat, 29 Jan 2022 10:12:54 -0800 Subject: [PATCH] Clean up redundant use of `_deprecate_attributes` (#4917) `deprecate_attributes` replaces standard Python module with a wrapper that modifies attribute access. Avoid unless truly needed. --- cirq/sim/__init__.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cirq/sim/__init__.py b/cirq/sim/__init__.py index af1f572b4b7..69bf0ef8fa4 100644 --- a/cirq/sim/__init__.py +++ b/cirq/sim/__init__.py @@ -98,13 +98,3 @@ CliffordTrialResult, CliffordSimulatorStepResult, ) - -# pylint: disable=wrong-import-order -import sys as _sys -from cirq._compat import deprecate_attributes as _deprecate_attributes - -deprecated_constants: Dict[str, Tuple[str, str]] = { - # currently none, you can use this to deprecate constants, for example like this: - # 'STATE_VECTOR_LIKE': ('v0.9', 'Use cirq.STATE_VECTOR_LIKE instead'), -} -_sys.modules[__name__] = _deprecate_attributes(_sys.modules[__name__], deprecated_constants)