# HG changeset patch # User Paul Boddie # Date 1489351275 -3600 # Node ID 026f3eeca44318a49106690009c56b2bd268c4db # Parent 0e446cf36ed2fe1aa37e2b35cce43f61fa742ff2 Do not modify alias provider details for accesses involving multiple attributes. diff -r 0e446cf36ed2 -r 026f3eeca443 deducer.py --- a/deducer.py Sun Mar 12 19:36:53 2017 +0100 +++ b/deducer.py Sun Mar 12 21:41:15 2017 +0100 @@ -1628,6 +1628,16 @@ location, name, attrnames, access_number = access_location invocation = self.reference_invocations.get(access_location) + attrnames = attrnames and attrnames.split(".") + remaining = attrnames and len(attrnames) > 1 + + # Alias has remaining attributes: reference details do not + # correspond to the accessor; the remaining attributes would + # need to be traversed first. + + if remaining: + return + # Alias references an attribute access. if attrnames: