]> Repositories - hackapet/Adafruit_Blinka_Displayio.git/commitdiff
Applied pre-commit changes
authorPhil Rittenhouse <phil@laurelcreeksystems.com>
Thu, 17 Apr 2025 18:07:03 +0000 (14:07 -0400)
committerPhil Rittenhouse <phil@laurelcreeksystems.com>
Thu, 17 Apr 2025 18:07:03 +0000 (14:07 -0400)
vectorio/_circle.py
vectorio/_vectorshape.py

index f002800d7c66e627d00c75725c9e772da09e1668..339b1540ff31c08e0e4b94db8eab47d831c5c16b 100644 (file)
@@ -61,7 +61,7 @@ class Circle(_VectorShape):
     def radius(self, value: int) -> None:
         if value < 1:
             raise ValueError("radius must be >= 1")
     def radius(self, value: int) -> None:
         if value < 1:
             raise ValueError("radius must be >= 1")
-        self._radius = int(value) # other code assumes radius is an integer
+        self._radius = int(value)  # other code assumes radius is an integer
         self._shape_set_dirty()
 
     @property
         self._shape_set_dirty()
 
     @property
index 999f82eed091e10126dac347d42844a16ba1e074..735e5ae501a4b3863bd78be485c625b9bb01660b 100644 (file)
@@ -122,14 +122,12 @@ class _VectorShape:
         self._get_screen_area(current_area)
         moved = current_area != self._current_area
         if moved:
         self._get_screen_area(current_area)
         moved = current_area != self._current_area
         if moved:
-            # This will add _current_area (the old position) to dirty area 
+            # This will add _current_area (the old position) to dirty area
             self._current_area.union(
                 self._ephemeral_dirty_area, self._ephemeral_dirty_area
             )
             # This will add the new position to the dirty area
             self._current_area.union(
                 self._ephemeral_dirty_area, self._ephemeral_dirty_area
             )
             # This will add the new position to the dirty area
-            current_area.union(
-                self._ephemeral_dirty_area, self._ephemeral_dirty_area
-            )
+            current_area.union(self._ephemeral_dirty_area, self._ephemeral_dirty_area)
             # Dirty area tracks the shape's footprint between draws.  It's reset on refresh finish.
             current_area.copy_into(self._current_area)
         self._current_area_dirty = True
             # Dirty area tracks the shape's footprint between draws.  It's reset on refresh finish.
             current_area.copy_into(self._current_area)
         self._current_area_dirty = True