From 62b150490b40e5b84196e4f64afd04319922a930 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 7 Oct 2021 12:37:33 +0200 Subject: [PATCH] Forward type hinting --- src/sensor/tofsensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sensor/tofsensor.py b/src/sensor/tofsensor.py index 9a44462..a8fb4df 100644 --- a/src/sensor/tofsensor.py +++ b/src/sensor/tofsensor.py @@ -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: