From 0431bcbeb3df58e935d70cca138ba24bbd10e33d Mon Sep 17 00:00:00 2001 From: Stainless Bot Date: Fri, 26 Jan 2024 13:55:19 +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 fd13bc7d..c5fe9004 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