Forward type hinting
This commit is contained in:
parent
60309ee2bb
commit
62b150490b
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class Directions(Enum):
|
|||
INSIDE = "indoor"
|
||||
OUTSIDE = "outdoor"
|
||||
|
||||
def other(self, direction: Direction) -> Direction:
|
||||
def other(self, direction: 'Direction') -> 'Direction':
|
||||
if direction is Directions.INSIDE:
|
||||
return Directions.OUTSIDE
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue