Skip to content

Commit

Permalink
Adjust dev requirements, branch executes in 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
brickbots committed Jun 11, 2024
1 parent 9545a1f commit bfe6145
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion python/PiFinder/ui/text_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"""

from typing import Union
from PiFinder.ui.base import UIModule


Expand Down Expand Up @@ -112,7 +113,7 @@ def menu_scroll(self, direction: int):
if self._current_item_index >= len(self._menu_items):
self._current_item_index = len(self._menu_items) - 1

def get_item(self, item_name: str) -> dict | None:
def get_item(self, item_name: str) -> Union[dict, None]:
"""
Takes an item name and returns the actual item dict
"""
Expand Down
6 changes: 3 additions & 3 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dev requirements
luma.emulator==1.4.0
PyHotKey
ruff-0.4.8
nox-2024.4.15
pytest-8.2.2
ruff==0.4.8
nox==2024.4.15
pytest==8.2.2
pre-commit

0 comments on commit bfe6145

Please sign in to comment.