Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kamahen opened this issue Aug 6, 2019 · 0 comments
Open

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

kamahen opened this issue Aug 6, 2019 · 0 comments

Comments

@kamahen
Copy link
Owner

kamahen commented Aug 6, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant