check_missing_items.py: Check imports

This commit is contained in:
Nixon Enraght-Moony 2022-08-28 02:43:13 +01:00
parent 8050c1993b
commit 891ebf90a5

View File

@ -187,3 +187,9 @@ while work_list:
check_generic_bound(bound)
if item["inner"]["default"]:
check_type(item["inner"]["default"])
elif item["kind"] == "import":
if item["inner"]["id"]:
inner_id = item["inner"]["id"]
assert valid_id(inner_id)
if inner_id in crate["index"] and inner_id not in visited:
work_list.add(inner_id)