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

Resolves #10542 Add fullname of node that is still a PlaceholderNode when assertion fails #10565

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion mypy/nodes.py
Expand Up @@ -3080,7 +3080,7 @@ def serialize(self, prefix: str, name: str) -> JsonDict:
and fullname != prefix + '.' + name
and not (isinstance(self.node, Var)
and self.node.from_module_getattr)):
assert not isinstance(self.node, PlaceholderNode)
assert not isinstance(self.node, PlaceholderNode), '%s' % fullname
hauntsaninja marked this conversation as resolved.
Show resolved Hide resolved
data['cross_ref'] = fullname
return data
data['node'] = self.node.serialize()
Expand Down