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:
+4
-2
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user