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

Fix crash in module __getattr__ #5292

merged 3 commits into from Jun 29, 2018


None yet
2 participants
Copy link

ilevkivskyi commented Jun 28, 2018

The examples in tests crash with:

  File "/Users/ilevkivskyi/src/mypy/mypy/", line 1613, in anal_type
    typ = t.accept(a)
  File "/Users/ilevkivskyi/src/mypy/mypy/", line 204, in accept
    return visitor.visit_unbound_type(self)
  File "/Users/ilevkivskyi/src/mypy/mypy/", line 179, in visit_unbound_type
    typ = self.visit_unbound_type_nonoptional(t)
  File "/Users/ilevkivskyi/src/mypy/mypy/", line 215, in visit_unbound_type_nonoptional
    tvar_def = self.tvar_scope.get_binding(sym)
  File "/Users/ilevkivskyi/src/mypy/mypy/", line 78, in get_binding
    assert fullname is not None

While debugging this I found some other controversial code. But I don't want to touch it in this same PR (also best solution for that other problem is not clear to me).

@ilevkivskyi ilevkivskyi requested a review from msullivan Jun 28, 2018

@ilevkivskyi ilevkivskyi merged commit c348b99 into python:master Jun 29, 2018

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
continuous-integration/travis-ci/pr The Travis CI build passed

@ilevkivskyi ilevkivskyi deleted the ilevkivskyi:fix-fullname-crash branch Jun 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.