From a7e855b3193bfcbf941e997831fac9591cceb09a Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Wed, 29 Jul 2020 23:15:07 +0100 Subject: [PATCH] compiler.types: Change invalid default value [nfc] This wasn't actually ever used, but was a dict instead of a set. --- artiq/compiler/types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/types.py b/artiq/compiler/types.py index 206f040fb..deeb8352b 100644 --- a/artiq/compiler/types.py +++ b/artiq/compiler/types.py @@ -296,7 +296,7 @@ class TCFunction(TFunction): attributes = OrderedDict() - def __init__(self, args, ret, name, flags={}): + def __init__(self, args, ret, name, flags=set()): assert isinstance(flags, set) for flag in flags: assert flag in {'nounwind', 'nowrite'}