ruff
001298b4 - [ty] Recognize that dedent ends doctest block when parsing docstrings for signature help (#26552)

Commit
10 days ago
[ty] Recognize that dedent ends doctest block when parsing docstrings for signature help (#26552) <!-- Thank you for contributing to Ruff/ty! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? (Please prefix with `[ty]` for ty pull requests.) - Does this pull request include references to any relevant issues? - Does this PR follow our AI policy (https://github.com/astral-sh/.github/blob/main/AI_POLICY.md)? --> ## Summary <!-- What's the purpose of the change? What does it do, and why? --> This fixes a small bug in the logic for recognizing the end of a doctest in docstring. The immediate impact is low because the shape that exposes the bug is uncommon in reStructuredText, but the shape is more common in [the Google and NumPy docstring formats that we hope to render as Markdown soon](https://github.com/astral-sh/ty/issues/1667). ## Test Plan See included test. <!-- How was it tested? -->
Author
Parents
Loading