From 594ff45750cc9f0e5a72e0b793079b8fd75c3631 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Wed, 18 Dec 2019 13:23:40 +0000 Subject: [PATCH] compiler: Revert support for `None` as `TNone` This was mistakenly included in fb2b634c4a9, and broke the test case verifying that using None as an ARTIQ type annotation in fact generates an error message. --- artiq/compiler/embedding.py | 3 --- 1 file changed, 3 deletions(-) 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",