Added assertion to assist with import resolution debugging
This commit is contained in:
parent
c3fe9f77cb
commit
9008db48e5
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue