original_docstring: Set key color of a given PianoKey object
docstring: Set key color of a given PianoKey object
docstring_tokens: Set key color of a given PianoKey object
code: def key_color(self, color: str) -> None:
          """Set key color of a given PianoKey object"""
          if color not in ("white", "black"):
              raise ValueError("Key color can only be white or black")
          self._key_color = color
code_tokens: def key_color ( self , color : str ) -> None : if color not in ( "white" , "black" ) : raise ValueError ( "Key color can only be white or black" ) self . _key_color = color
short_docstring: Set key color of a given PianoKey object
short_docstring_tokens: Set key color of a given PianoKey object
comment: """Set key color of a given PianoKey object"""