Fixed static self reference
This commit is contained in:
parent
e64afd9a58
commit
5019882f9f
1 changed files with 3 additions and 3 deletions
|
@ -5,14 +5,14 @@ class Directions(Enum):
|
||||||
INSIDE = "indoor"
|
INSIDE = "indoor"
|
||||||
OUTSIDE = "outdoor"
|
OUTSIDE = "outdoor"
|
||||||
|
|
||||||
def other(self, direction: 'Direction') -> 'Direction':
|
def other(direction: 'Direction') -> 'Direction':
|
||||||
if direction is Directions.INSIDE:
|
if direction is Directions.INSIDE:
|
||||||
return Directions.OUTSIDE
|
return Directions.OUTSIDE
|
||||||
else:
|
else:
|
||||||
return Directions.INSIDE
|
return Directions.INSIDE
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__():
|
||||||
return [self.INSIDE, self.OUTSIDE]
|
return [Directions.INSIDE, Directions.OUTSIDE]
|
||||||
|
|
||||||
|
|
||||||
class ToFSensor:
|
class ToFSensor:
|
||||||
|
|
Loading…
Reference in a new issue