Fix issue with mypy : moved setter next to property
This commit is contained in:
parent
a55e7c7bfe
commit
477cc99247
1 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
COLORS = {
|
||||
"Bleu": [0, 0, 255],
|
||||
"Blanc": [0, 0, 0],
|
||||
"Blanc": [255, 255, 255],
|
||||
"Rouge": [255, 0, 0],
|
||||
"Verte": [0, 127, 31],
|
||||
"Jaune": [255, 255, 0],
|
||||
|
@ -108,10 +108,6 @@ class Screen:
|
|||
def secondary(self):
|
||||
return self._secondary
|
||||
|
||||
@property
|
||||
def secondary_pixels(self):
|
||||
return self._secondary_pixels
|
||||
|
||||
@secondary.setter
|
||||
def secondary(self, value):
|
||||
self._secondary = value
|
||||
|
@ -124,6 +120,10 @@ class Screen:
|
|||
if not self._tmp:
|
||||
self.set_pixels()
|
||||
|
||||
@property
|
||||
def secondary_pixels(self):
|
||||
return self._secondary_pixels
|
||||
|
||||
def stick_click(self, event):
|
||||
match (event.action, self._held):
|
||||
case ("held", False):
|
||||
|
|
Loading…
Reference in a new issue