referencing.py | raw changeset files shortlog |
1.1 --- a/referencing.py Tue Nov 15 22:57:58 2016 +0100 1.2 +++ b/referencing.py Thu Nov 17 21:45:25 2016 +0100 1.3 @@ -114,7 +114,7 @@ 1.4 1.5 "Return this reference if it refers to a static object, None otherwise." 1.6 1.7 - return not self.has_kind(["<var>", "<instance>"]) and self or None 1.8 + return self.has_kind(["<class>", "<function>", "<module>"]) and self or None 1.9 1.10 def final(self): 1.11