1.1 --- a/deducer.py Mon Mar 13 01:22:54 2017 +0100
1.2 +++ b/deducer.py Mon Mar 13 01:46:58 2017 +0100
1.3 @@ -1520,6 +1520,9 @@
1.4 if not attrname:
1.5 return
1.6
1.7 + invocation = access_location in self.reference_invocations
1.8 + assignment = access_location in self.reference_assignments
1.9 +
1.10 # Collect all suggested types for the accessors. Accesses may
1.11 # require accessors from of a subset of the complete set of types.
1.12
1.13 @@ -1549,7 +1552,7 @@
1.14
1.15 else:
1.16 self.init_definition_details(location)
1.17 - self.record_types_for_usage(location, [(attrname, False, False)])
1.18 + self.record_types_for_usage(location, [(attrname, invocation, assignment)])
1.19
1.20 constrained = location in self.accessor_constrained and constrained
1.21