@@ -480,9 +480,7 @@ def _right_to_left(self) -> None:
480480 self .displaymode &= ~ _LCD_ENTRYLEFT
481481 self ._write8 (_LCD_ENTRYMODESET | self .displaymode )
482482
483- def create_char (
484- self , location : int , pattern : Sequence [int , int , int , int , int , int , int , int ]
485- ) -> None :
483+ def create_char (self , location : int , pattern : Sequence [int ]) -> None :
486484 """
487485 Fill one of the first 8 CGRAM locations with custom characters.
488486 The location parameter should be between 0 and 7 and pattern should
@@ -679,7 +677,7 @@ def __init__(
679677 super ().__init__ (rs , en , db4 , db5 , db6 , db7 , columns , lines )
680678
681679 @property
682- def color (self ) -> List [int , int , int ]:
680+ def color (self ) -> List [int ]:
683681 """
684682 The color of the display. Provide a list of three integers ranging 0 - 100, ``[R, G, B]``.
685683 ``0`` is no color, or "off". ``100`` is maximum color. For example, the brightest red would
@@ -710,7 +708,7 @@ def color(self) -> List[int, int, int]:
710708 return self ._color
711709
712710 @color .setter
713- def color (self , color : Union [List [int , int , int ], int ]) -> None :
711+ def color (self , color : Union [List [int ], int ]) -> None :
714712 if isinstance (color , int ):
715713 if color >> 24 :
716714 raise ValueError ("Integer color value must be positive and 24 bits max" )
0 commit comments