ruff/crates/red_knot_python_semantic/resources/mdtest/annotations
David Peter 6b9f3d7d7c
[red-knot] Import LiteralString/Never from typing_extensions (#14817)
## Summary

`typing.Never` and `typing.LiteralString` are only conditionally
exported from `typing` for Python versions 3.11 and later. We run the
Markdown tests with the default Python version of 3.9, so here we change
the import to `typing_extensions` instead, and add a new test to make
sure we'll continue to understand the `typing`-version of these symbols
for newer versions.

This didn't cause problems so far, as we don't understand
`sys.version_info` branches yet.

## Test Plan

New Markdown tests to make sure this will continue to work in the
future.
2024-12-06 13:57:51 +01:00
..
any.md [red-knot] Add typing.Any as a spelling for the Any type (#14742) 2024-12-04 09:56:36 -05:00
literal_string.md [red-knot] Import LiteralString/Never from typing_extensions (#14817) 2024-12-06 13:57:51 +01:00
never.md [red-knot] Import LiteralString/Never from typing_extensions (#14817) 2024-12-06 13:57:51 +01:00
optional.md Understand typing.Optional in annotations (#14397) 2024-11-17 17:04:58 +00:00
starred.md [red-knot] Meta data for Type::Todo (#14500) 2024-11-21 09:59:47 +01:00
string.md Avoid inferring invalid expr types for string annotation (#14447) 2024-11-25 21:27:03 +05:30
union.md [red-knot] support typing.Union in type annotations (#14499) 2024-11-20 21:55:33 +00:00