mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
## Summary Fixes https://github.com/astral-sh/ty/issues/1620. #20909 added hints if you do something like this and your Python version is set to 3.10 or lower: ```py import typing typing.LiteralString ``` And we also have hints if you try to do something like this and your Python version is set too low: ```py from stdlib_module import new_submodule ``` But we don't currently have any subdiagnostic hint if you do something like _this_ and your Python version is set too low: ```py from typing import LiteralString ``` This PR adds that hint! ## Test Plan snapshots --------- Co-authored-by: Aria Desires <aria.desires@gmail.com>