Skip to content

Commit

Permalink
mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeharker committed Oct 30, 2024
1 parent c6c4da3 commit e76ddf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_neotrellis/neotrellis.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def sync(self) -> None:
):
callback(evt)

def local_key_index(self, x, y) -> int:
def local_key_index(self, x: int, y: int) -> int:
return int(y * self.width + x)

def key_index(self, x, y) -> int:
def key_index(self, x: int, y: int) -> int:
return int((y - self.y_base) * self.width + (x - self.x_base))

0 comments on commit e76ddf6

Please sign in to comment.