chore: update typing to collections.abc

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2023-04-18 12:38:21 -04:00
parent ec9919a088
commit 6d038dfbdf
13 changed files with 44 additions and 36 deletions
+7
View File
@@ -136,6 +136,7 @@ select = [
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"TID251", # flake8-tidy-imports.banned-api
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
@@ -151,6 +152,12 @@ target-version = "py37"
typing-modules = ["cibuildwheel.typing"]
flake8-unused-arguments.ignore-variadic-names = true
[tool.ruff.flake8-tidy-imports.banned-api]
"typing.Mapping".msg = "Use collections.abc.Mapping instead."
"typing.Callable".msg = "Use collections.abc.Callable instead."
"typing.Iterator".msg = "Use collections.abc.Iterator instead."
"typing.Sequence".msg = "Use collections.abc.Sequence instead."
"typing.Set".msg = "Use collections.abc.Set instead."
[tool.ruff.per-file-ignores]
"unit_test/*" = ["PLC1901"]