diff --git a/artiq/compiler/embedding.py b/artiq/compiler/embedding.py index fb0a8be39..2b10673bd 100644 --- a/artiq/compiler/embedding.py +++ b/artiq/compiler/embedding.py @@ -950,9 +950,6 @@ class Stitcher: return function_node def _extract_annot(self, function, annot, kind, call_loc, fn_kind): - if annot is None: - annot = builtins.TNone() - if not isinstance(annot, types.Type): diag = diagnostic.Diagnostic("error", "type annotation for {kind}, '{annot}', is not an ARTIQ type",