Skip to content

Commit 2b019d4

Browse files
committed
chore(internal): enable ruff type checking misuse lint rule (openai#1106)
This catches the case where a typing import is used at runtime
1 parent 66c4f49 commit 2b019d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyproject.toml

+2
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ select = [
147147
# print statements
148148
"T201",
149149
"T203",
150+
# misuse of typing.TYPE_CHECKING
151+
"TCH004"
150152
]
151153
ignore = [
152154
# mutable defaults

0 commit comments

Comments
 (0)