Search code examples
pygsheets

Reset the background color of a Cell in pysheet


Trying to reset the color of a linked cell.

Looking at a cell without color, the color attribute is (None, None, None, None)

So I tried:

cell.color = (None, None, None, None)

and

cell.color = None

Both raise

TypeError: '<' not supported between instances of 'NoneType' and 'int'

Is reseting the color supported by pysheets?


Solution

  • To reset the color you can do :

    cell.color = ()