1.1 --- a/deducer.py Sun Nov 27 23:22:51 2016 +0100
1.2 +++ b/deducer.py Mon Nov 28 00:24:53 2016 +0100
1.3 @@ -1834,11 +1834,14 @@
1.4 if const_access:
1.5 base = len(objtypes) == 1 and first(objtypes)
1.6
1.7 - # Constant accessors are static.
1.8 + # Name-based accesses.
1.9
1.10 elif name:
1.11 ref = self.importer.identify("%s.%s" % (path, name))
1.12 - if ref:
1.13 +
1.14 + # Constant accessors are static.
1.15 +
1.16 + if ref and ref.static():
1.17 base = ref.get_origin()
1.18
1.19 # Usage of previously-generated guard and test details.