Skip to content

Commit 8514ff2

Browse files
adamtheturtleclaude
andcommitted
Ignore ruff TC rules until beartype supports TYPE_CHECKING
Beartype requires imports to be available at runtime, not just under `if TYPE_CHECKING`. See beartype/beartype#594 for when beartype 0.23 will add support for TYPE_CHECKING imports. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 6276f37 commit 8514ff2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,12 @@ lint.ignore = [
162162
# Ignore "too-many-*" errors as they seem to get in the way more than
163163
# helping.
164164
"PLR0913",
165+
# Beartype requires imports to be available at runtime, not just for type
166+
# checking. See https://github.com/beartype/beartype/discussions/594
167+
# for when beartype will support `if TYPE_CHECKING` imports.
168+
"TC001",
169+
"TC002",
170+
"TC003",
165171
]
166172

167173
lint.per-file-ignores."ci/test_custom_linters.py" = [

0 commit comments

Comments
 (0)