Skip to content

Commit

Permalink
Merge pull request #2 from 4sushi/fix/python_compatibility
Browse files Browse the repository at this point in the history
feat(python_compatibilty): add support for type hint "|"
  • Loading branch information
4sushi authored Mar 11, 2024
2 parents df5e82e + e7609e0 commit 930d056
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sudoku_game/game.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Author: 4sushi

from __future__ import annotations
from typing import List, Tuple
import random
import copy
Expand Down Expand Up @@ -119,4 +120,3 @@ def is_game_won(self) -> bool:

def get_difficulty(self) -> str:
return self.DIFFICULTIES[self.difficulty]

5 changes: 3 additions & 2 deletions sudoku_game/game_ui.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Author: 4sushi

from __future__ import annotations
import curses
from sudoku_game.game import GameSudoku
from typing import List, Optional, Dict
from typing import List, Optional
import sys
from datetime import datetime, timedelta



class GameUI:

def __init__(self):
Expand Down

0 comments on commit 930d056

Please sign in to comment.