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"
|
INSIDE = "indoor"
|
||||||
OUTSIDE = "outdoor"
|
OUTSIDE = "outdoor"
|
||||||
|
|
||||||
def other(self, direction: Direction) -> Direction:
|
def other(self, direction: 'Direction') -> 'Direction':
|
||||||
if direction is Directions.INSIDE:
|
if direction is Directions.INSIDE:
|
||||||
return Directions.OUTSIDE
|
return Directions.OUTSIDE
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue