Skip to content

unify module prefix so __unknown__ files count under --public-only (#4157)#4157

Open
kinto0 wants to merge 2 commits into
facebook:mainfrom
kinto0:export-D112166629
Open

unify module prefix so __unknown__ files count under --public-only (#4157)#4157
kinto0 wants to merge 2 commits into
facebook:mainfrom
kinto0:export-D112166629

Conversation

@kinto0

@kinto0 kinto0 commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Summary:

Make coverage's module_prefix() unconditional so __unknown__ fallback modules get the __unknown__. prefix like every other module.

Why: under --public-only, these files silently reported "0 of N typable" — symbols were stored bare while the public-FQN filter expects the prefixed form, so all got dropped.

Differential Revision: D112166629

@meta-codesync

meta-codesync Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

@kinto0 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D112166629.

…oad the correct commit data.

Differential Revision: D111830464
@github-actions

This comment has been minimized.

kinto0 added a commit to kinto0/pyrefly that referenced this pull request Jul 15, 2026
…acebook#4157)

Summary:
Pull Request resolved: facebook#4157

Make coverage's `module_prefix()` unconditional so `__unknown__` fallback modules get the `__unknown__.` prefix like every other module.

Why: under `--public-only`, these files silently reported "0 of N typable" — symbols were stored bare while the public-FQN filter expects the prefixed form, so all got dropped.

Differential Revision: D112166629
@kinto0 kinto0 force-pushed the export-D112166629 branch from 20cd029 to c613227 Compare July 15, 2026 19:06
@meta-codesync meta-codesync Bot changed the title unify module prefix so __unknown__ files count under --public-only unify module prefix so __unknown__ files count under --public-only (#4157) Jul 15, 2026
@github-actions github-actions Bot added size/m and removed size/s labels Jul 15, 2026
@github-actions

This comment has been minimized.

kinto0 added a commit to kinto0/pyrefly that referenced this pull request Jul 15, 2026
…acebook#4157)

Summary:
Pull Request resolved: facebook#4157

Make coverage's `module_prefix()` unconditional so `__unknown__` fallback modules get the `__unknown__.` prefix like every other module.

Why: under `--public-only`, these files silently reported "0 of N typable" — symbols were stored bare while the public-FQN filter expects the prefixed form, so all got dropped.

Differential Revision: D112166629
@kinto0 kinto0 force-pushed the export-D112166629 branch from c613227 to 0781873 Compare July 15, 2026 19:59
@github-actions github-actions Bot added size/m and removed size/m labels Jul 15, 2026
@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

…acebook#4157)

Summary:
Pull Request resolved: facebook#4157

Make coverage's `module_prefix()` unconditional so `__unknown__` fallback modules get the `__unknown__.` prefix like every other module.

Why: under `--public-only`, these files silently reported "0 of N typable" — symbols were stored bare while the public-FQN filter expects the prefixed form, so all got dropped.

Differential Revision: D112166629
@kinto0 kinto0 force-pushed the export-D112166629 branch from 0781873 to 7997eca Compare July 15, 2026 21:17
@github-actions github-actions Bot added size/m and removed size/m labels Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant