From d7ff5633da3e92d0e56375db4ff0dc284e3457be Mon Sep 17 00:00:00 2001 From: Chris O'Hara Date: Fri, 2 Feb 2024 14:58:07 +1000 Subject: [PATCH] Minor lint fixes --- src/dispatch/experimental/multicolor/compile.py | 2 ++ src/dispatch/experimental/multicolor/desugar.py | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dispatch/experimental/multicolor/compile.py b/src/dispatch/experimental/multicolor/compile.py index fe1f59ee..bbffea55 100644 --- a/src/dispatch/experimental/multicolor/compile.py +++ b/src/dispatch/experimental/multicolor/compile.py @@ -120,6 +120,8 @@ def compile_internal( return fn, FunctionColor.GENERATOR_FUNCTION except TypeError: raise e + else: + raise # Determine what type of function we're working with. color = FunctionColor.REGULAR_FUNCTION diff --git a/src/dispatch/experimental/multicolor/desugar.py b/src/dispatch/experimental/multicolor/desugar.py index ca4e6563..9d111305 100644 --- a/src/dispatch/experimental/multicolor/desugar.py +++ b/src/dispatch/experimental/multicolor/desugar.py @@ -1,5 +1,4 @@ import ast -import sys from typing import cast