Removed a simple pitfall case where the code was incurring into the Pylint error R1714 consider-using-in https://github.com/vald-phoenix/pylint-errors/blob/master/plerr/errors/refactoring/R1714.md

pull/357/head
naelsondouglas 2021-10-15 02:48:40 -03:00
parent eb50a02028
commit 6ec5a3d6a4
1 changed files with 1 additions and 1 deletions

View File

@ -4807,7 +4807,7 @@ class Menu:
elif key in ["escape", "o", "M", "f2"]: elif key in ["escape", "o", "M", "f2"]:
cls.close = True cls.close = True
break break
elif key == "tab" or (key == "down" and selected_int == len(option_items) - 1 and (page == pages or pages == 0)): elif key == "tab" or (key == "down" and selected_int == len(option_items) - 1 and page in [0, pages]:
if cat_int == len(categories) - 1: if cat_int == len(categories) - 1:
cat_int = 0 cat_int = 0
else: else: