diff --git a/pyproject.toml b/pyproject.toml index 6555f42b..ed798d3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -252,9 +252,10 @@ exclude_also = [ "if settings.DEBUG", "raise AssertionError", "raise NotImplementedError", - "if 0:", "if __name__ == .__main__.:", "if TYPE_CHECKING:", + "if t.TYPE_CHECKING:", "class .*\\bProtocol\\):", "@(abc\\.)?abstractmethod", + "from __future__ import annotations", ]