From 4f69b9d053c0a0fff06f969180588a4ec75dc673 Mon Sep 17 00:00:00 2001 From: Michael H Date: Tue, 11 Jun 2024 02:12:15 -0400 Subject: [PATCH] update banned api message --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6c7a80d..504df15 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,7 @@ extend-ignore = [ [tool.ruff.lint.flake8-tidy-imports.banned-api] # https://discuss.python.org/t/problems-with-typeis/55410/6 # Until what can go into a TypeIs/TypeGuard changes, these are just dangerous. -"typing.TypeIs".msg = "TypeIs is fundamentally unsafe in a language with mutable heterogenous containers" +"typing.TypeIs".msg = "TypeIs is fundamentally unsafe, even when using it as described to be safe" "typing.TypeGuard".msg = "TypeGuard is fundamentally unsafe" -"typing_extensions.TypeIs".msg = "TypeIs is fundamentally unsafe in a language with mutable heterogenous containers" +"typing.TypeIs".msg = "TypeIs is fundamentally unsafe, even when using it as described to be safe" "typing_extensions.TypeGuard".msg = "TypeGuard is fundamentally unsafe" \ No newline at end of file