1.1 --- a/referencing.py Sat Dec 17 01:51:10 2016 +0100
1.2 +++ b/referencing.py Sat Dec 17 14:59:19 2016 +0100
1.3 @@ -213,6 +213,14 @@
1.4 name = self.get_name()
1.5 return name and name.rsplit(".")[-1].startswith("$c")
1.6
1.7 + def is_predefined_value(self):
1.8 +
1.9 + "Return whether this reference identifies a predefined value."
1.10 +
1.11 + # NOTE: Details of built-in types employed.
1.12 +
1.13 + return self.get_origin() in ("__builtins__.none.NoneType", "__builtins__.boolean.boolean")
1.14 +
1.15 def get_types(self):
1.16
1.17 "Return class, instance-only and module types for this reference."