class_docstr: Dataclass to encapsulate the current :class:`~lightning.pytorch.trainer.trainer.Trainer` state.
class_docstr_tok: ["Dataclass","to","encapsulate","the","current",":","class",":","`","~lightning.pytorch.trainer.trainer.Trainer","`","state","."]
code: def stopped(self) -> bool:
      return self.status.stopped
  
file_path: pytorch-lightning/src/lightning/pytorch/trainer/states.py
imports: from dataclasses import dataclass
  from typing import Optional
  from lightning.pytorch.utilities.enums import LightningEnum
label_desc: Use image node_id 2 for calling the TrainerState obj's underlying member method code with example usage: obj.stopped() and returns: self