class_docstr: Legacy class.
  
  Use :class:`~lightning.fabric.plugins.precision.xla.XLAPrecision` instead.
class_docstr_tok: ["Legacy","class",".","Use",":","class",":","`","~lightning.fabric.plugins.precision.xla.XLAPrecision","`","instead","."]
code: def __init__(self, *args: Any, **kwargs: Any) -> None:
      rank_zero_deprecation(
          "The `TPUPrecision` class is deprecated. Use `lightning.fabric.plugins.precision.XLAPrecision`"
          " instead."
      )
      super().__init__(precision="32-true")
  
imports: import sys
  from typing import Any
  import lightning.fabric
  from lightning.fabric.accelerators import XLAAccelerator
  from lightning.fabric.plugins.precision import XLAPrecision
  from lightning.fabric.strategies import _StrategyRegistry
  from lightning.fabric.strategies.single_xla import SingleDeviceXLAStrategy
  from lightning.fabric.utilities.rank_zero import rank_zero_deprecation
label_desc: Use image node_id 1 to create a new TPUPrecision object from inherited base classes: XLAPrecision with example: obj = TPUPrecision()