class_docstr: This `Scratchpad` validates attribute values.
class_docstr_tok: ["This","`","Scratchpad","`","validates","attribute","values","."]
code: def __init__(self, attr, attr_filter):
      super().__init__()
  
      object.__setattr__(self, "attr", attr)
      object.__setattr__(self, "attr_filter", attr_filter)
  
imports: import linecache
  import sys
  import traceback
  from abc import ABCMeta
  from collections.abc import Sequence
  from io import StringIO
  from typing import TYPE_CHECKING, Any, Optional, TypeVar, Union
label_desc: Use image node_id 1 to create a new ValidatingScratchpad object from inherited base classes: Scratchpad with example: obj = ValidatingScratchpad(attr, attr_filter)