diff --git a/crates/red_knot_python_semantic/resources/mdtest/exception/except_star.md b/crates/red_knot_python_semantic/resources/mdtest/exception/except_star.md index 062e285c46af9..b64f6f4e64b16 100644 --- a/crates/red_knot_python_semantic/resources/mdtest/exception/except_star.md +++ b/crates/red_knot_python_semantic/resources/mdtest/exception/except_star.md @@ -1,5 +1,12 @@ # `except*` +`except*` is only available in Python 3.11 and later: + +```toml +[environment] +python-version = "3.11" +``` + ## `except*` with `BaseException` ```py diff --git a/crates/red_knot_python_semantic/resources/mdtest/type_alias.md b/crates/red_knot_python_semantic/resources/mdtest/pep695_type_aliases.md similarity index 90% rename from crates/red_knot_python_semantic/resources/mdtest/type_alias.md rename to crates/red_knot_python_semantic/resources/mdtest/pep695_type_aliases.md index 77a9441136bd7..de2eccf81ea81 100644 --- a/crates/red_knot_python_semantic/resources/mdtest/type_alias.md +++ b/crates/red_knot_python_semantic/resources/mdtest/pep695_type_aliases.md @@ -1,4 +1,11 @@ -# Type aliases +# PEP 695 type aliases + +PEP 695 type aliases are only available in Python 3.12 and later: + +```toml +[environment] +python-version = "3.12" +``` ## Basic