mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-02 01:42:25 +00:00
[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:
parent
dfd7f38009
commit
c3a64b44b7
2 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue