[red-knot] mdtest: python version requirements (#14954)

## Summary

This is not strictly required yet, but makes these tests future-proof.
They need a `python-version` requirement as they rely on language
features that are not available in 3.9.
This commit is contained in:
David Peter 2024-12-13 10:40:38 +01:00 committed by GitHub
parent dfd7f38009
commit c3a64b44b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View file

@ -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

View file

@ -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