Skip to content

Commit

Permalink
Drop support for Python 3.9, drop Optional and Union from type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Mar 27, 2024
1 parent ed5939a commit 19a2322
Show file tree
Hide file tree
Showing 40 changed files with 345 additions and 367 deletions.
3 changes: 1 addition & 2 deletions docs/source/examples/gen_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from collections import defaultdict
from collections.abc import Iterable
from pathlib import Path
from typing import Union

from tqdm import tqdm

Expand All @@ -24,7 +23,7 @@
logger = logging.getLogger()


def _bool_to_icon(x: Union[bool, Iterable]) -> str:
def _bool_to_icon(x: bool | Iterable) -> str:
if x:
return "✅"
else:
Expand Down
8 changes: 6 additions & 2 deletions docs/source/v1.9.md.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@

### :new: New features & enhancements

- Added number of subject to sub-average report (#902 by @SophieHerbst)
- Added number of subject to `sub-average` report (#902 by @SophieHerbst)
- The type annotations in the default configuration file are now easier to read: We
replaced `Union[X, Y]` with `X | Y` and `Optional[X]` with `X | None`. (#808 by @hoechenberger)

[//]: # (- Whatever (#000 by @whoever))

[//]: # (### :warning: Behavior changes)

[//]: # (- Whatever (#000 by @whoever))

[//]: # (### :package: Requirements)
### :package: Requirements

- We dropped support for Python 3.9. You now need Python 3.10 or newer.

[//]: # (- Whatever (#000 by @whoever))

Expand Down
Loading

0 comments on commit 19a2322

Please sign in to comment.