Skip to content

Commit

Permalink
Add labels and change pos of consts
Browse files Browse the repository at this point in the history
  • Loading branch information
hgiesel committed May 27, 2020
1 parent 7672e5d commit c35a79f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/lib/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
REVLOG_LRN, REVLOG_REV, REVLOG_RELRN, REVLOG_CRAM,
)

Button = Literal[
BUTTON_ONE, # Again
BUTTON_TWO, # Hard
BUTTON_THREE, # Good
BUTTON_FOUR, # Easy
RevlogType = Literal[
REVLOG_LRN, # 0
REVLOG_REV, # 1
REVLOG_RELRN, # 2
REVLOG_CRAM, # 3
]

RevlogType = Literal[
REVLOG_LRN,
REVLOG_REV,
REVLOG_RELRN,
REVLOG_CRAM,
Button = Literal[
BUTTON_ONE, # Again 1
BUTTON_TWO, # Hard 2
BUTTON_THREE, # Good 3
BUTTON_FOUR, # Easy 4
]

def review_success(v: Tuple[RevlogType, Button]) -> bool:
Expand Down

0 comments on commit c35a79f

Please sign in to comment.