Skip to content

Commit 3fedbc4

Browse files
committed
Fix self check
1 parent 0e90f1a commit 3fedbc4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

mypyc/build.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,9 @@ def construct_groups(
467467
for files, name in separate:
468468
normalized_files = {os.path.normpath(f) for f in files}
469469
group_sources = [
470-
src for src in sources if os.path.normpath(src.path) in normalized_files
470+
src
471+
for src in sources
472+
if src.path is not None and os.path.normpath(src.path) in normalized_files
471473
]
472474
groups.append((group_sources, name))
473475
used_sources.update(group_sources)

0 commit comments

Comments
 (0)