Added assertion to assist with import resolution debugging

pull/199/head
Ashley Whetter 4 years ago
parent c3fe9f77cb
commit 9008db48e5

@ -163,6 +163,9 @@ def _resolve_placeholder(placeholder, original):
:type original: dict
"""
new = copy.deepcopy(original)
# We are supposed to be resolving the placeholder,
# not replacing it with another.
assert original["type"] != "placeholder"
# The name remains the same.
new["name"] = placeholder["name"]
new["full_name"] = placeholder["full_name"]

Loading…
Cancel
Save