kamahen / pykythe

Generate code Python source cross-reference facts in Kythe format
Other
21 stars 3 forks source link

@property dict has problem with "." operation #23

Open kamahen opened 5 years ago

kamahen commented 5 years ago

pytype/abstract.pl has this at line 1727:

      mutations = self._get_mutation_to_unknown(
          node, (view[p].data for p in itertools.chain(
              args.posargs, args.namedargs.values())))

namedargs resolves to SimpleAbstractValue.instance_type_parameters, which is defined:

  @property
  def instance_type_parameters(self):
    return self._instance_type_parameters

This results in eval_assign_dot_op_binds_unknown and eval_dot_unknown getting a Class of list_of_type([]).

Current work-around: a catch-all that does nothing.