# HG changeset patch # User Paul Boddie # Date 1489366018 -3600 # Node ID d760a72fbd2e6967c19fc303ac4e68239091ddd1 # Parent 6c9c24e04a74c9b0bfe63c5b4f8e5c93d7ce2f47 Define invocation and assignment properties for single-attribute usage lookups. diff -r 6c9c24e04a74 -r d760a72fbd2e deducer.py --- a/deducer.py Mon Mar 13 01:22:54 2017 +0100 +++ b/deducer.py Mon Mar 13 01:46:58 2017 +0100 @@ -1520,6 +1520,9 @@ if not attrname: return + invocation = access_location in self.reference_invocations + assignment = access_location in self.reference_assignments + # Collect all suggested types for the accessors. Accesses may # require accessors from of a subset of the complete set of types. @@ -1549,7 +1552,7 @@ else: self.init_definition_details(location) - self.record_types_for_usage(location, [(attrname, False, False)]) + self.record_types_for_usage(location, [(attrname, invocation, assignment)]) constrained = location in self.accessor_constrained and constrained