ruff
ruff copied to clipboard
`ruff server` correctly treats `.pyi` files as stub files
Summary
Fixes #11534.
DocumentQuery::source_type
now returns PySourceType::Stub
when the document is a .pyi
file.
Test Plan
I confirmed that stub-specific rule violations appeared with a build from this PR (they were not visible from a main
build).