Skip to content

Commit

Permalink
Clean up redundant use of _deprecate_attributes (quantumlib#4917)
Browse files Browse the repository at this point in the history
`deprecate_attributes` replaces standard Python module with a wrapper
that modifies attribute access.  Avoid unless truly needed.
  • Loading branch information
pavoljuhas authored Jan 29, 2022
1 parent e8842f7 commit 6e15143
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions cirq/sim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 6e15143

Please sign in to comment.