Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mypy/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,8 +973,10 @@ def write_deps_cache(
if st.source_hash:
hash = st.source_hash
else:
assert st.meta, "Module must be either parsed or cached"
hash = st.meta.hash
if st.meta:
hash = st.meta.hash
else:
hash = ""
meta_snapshot[id] = hash

meta = {"snapshot": meta_snapshot, "deps_meta": fg_deps_meta}
Expand Down
Loading