From 9ddf0dbdd60d43791275066d3a385316581a498a Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Fri, 26 Jan 2024 13:55:36 +0000 Subject: [PATCH] chore(internal): enable ruff type checking misuse lint rule This catches the case where a typing import is used at runtime --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 8929d8c5..d943dab7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -144,6 +144,8 @@ select = [ # print statements "T201", "T203", + # misuse of typing.TYPE_CHECKING + "TCH004" ] ignore = [ # mutable defaults