You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pyrefly coverage reports optional imports not used in stubs as untyped #3773
But I don't think that annotating charset_normalizer as None | ModuleType is needed, and it might even confuse some type-checkers. So I think that pyrefly coverage shouldn't report optional imports like these ones. This is a very common pattern, after all.
Activity
jorenham commentedon Jun 11, 2026
Also, dibs
Skip optional imports in `pyrefly coverage` (pyrefly-org#3774)