From 7a69edd041b8a1d3c02760a77edbd9579cf29111 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Fri, 10 Jan 2025 23:30:07 -0800 Subject: [PATCH] Document any TYPE_CHECKING name works --- docs/source/common_issues.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/common_issues.rst b/docs/source/common_issues.rst index 4cb00e55c2f3..d37203e9586a 100644 --- a/docs/source/common_issues.rst +++ b/docs/source/common_issues.rst @@ -455,7 +455,7 @@ Example: # The rest of this file doesn't apply to Windows. Some other expressions exhibit similar behavior; in particular, -:py:data:`~typing.TYPE_CHECKING`, variables named ``MYPY``, and any variable +:py:data:`~typing.TYPE_CHECKING`, variables named ``MYPY`` or ``TYPE_CHECKING``, and any variable whose name is passed to :option:`--always-true ` or :option:`--always-false `. (However, ``True`` and ``False`` are not treated specially!)