Skip to content

Commit ae32c4d

Browse files
committed
Add lint rule to block __annotations__
1 parent 9a37e71 commit ae32c4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ ignore = [
6060
"SIM102", "SIM108",
6161
]
6262

63+
[tool.ruff.lint.flake8-tidy-imports.banned-api]
64+
"__future__.annotations".msg = "No longer required in Python 3.14+, see https://docs.python.org/3/reference/compound_stmts.html#annotations"
65+
6366
[tool.ruff.lint.isort]
6467
order-by-type = false
6568
case-sensitive = true

0 commit comments

Comments
 (0)