chore: adhere to ruff's UP

basically use `list` and `type` instead of `List` and `Type`

this is save to use for python3.9 and has been deprecated. also has some
performance drawbacks.
read more here: https://docs.astral.sh/ruff/rules/non-pep585-annotation/
This commit is contained in:
dni ⚡ 2024-04-01 18:50:21 +02:00 committed by Pavol Rusnak
parent a158056b99
commit b145bff566
12 changed files with 54 additions and 52 deletions

View file

@ -169,8 +169,10 @@ extend-exclude = [
# A - flake8-builtins
# C - mccabe
# N - naming
select = ["F", "E", "W", "I", "A", "C", "N"]
ignore = []
# UP - pyupgrade
select = ["F", "E", "W", "I", "A", "C", "N", "UP"]
# UP007: pyupgrade: use X | Y instead of Optional. (python3.10)
ignore = ["UP007"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]