From bd2d75f3f524d98c2da200d0fc454efa1c1581c4 Mon Sep 17 00:00:00 2001 From: Stainless Bot <107565488+stainless-bot@users.noreply.github.com> Date: Fri, 26 Jan 2024 14:55:41 +0100 Subject: [PATCH] chore(internal): enable ruff type checking misuse lint rule (#152) 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