1.1 --- a/referencing.py Thu Nov 10 23:27:13 2016 +0100
1.2 +++ b/referencing.py Thu Nov 10 23:55:49 2016 +0100
1.3 @@ -90,7 +90,8 @@
1.4 """
1.5 Return whether the reference describes an object from the given 'kinds',
1.6 where such kinds may be "<class>", "<function>", "<instance>",
1.7 - "<module>" or "<var>".
1.8 + "<module>" or "<var>". Unresolved references may also have kinds of
1.9 + "<depends>" and "<invoke>".
1.10 """
1.11
1.12 if not isinstance(kinds, (list, tuple)):
1.13 @@ -103,6 +104,12 @@
1.14
1.15 return self.get_origin().split(".")
1.16
1.17 + def unresolved(self):
1.18 +
1.19 + "Return whether this reference is unresolved."
1.20 +
1.21 + return self.has_kind(["<depends>", "<invoke>"])
1.22 +
1.23 def static(self):
1.24
1.25 "Return this reference if it refers to a static object, None otherwise."