From c4e2eb79905d7b381db8caed161cebb04622ebc2 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sat, 18 Jan 2025 16:15:34 -0800 Subject: [PATCH] Document any TYPE_CHECKING name works (#18443) --- 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 7165955e67d35..96d73e5f03992 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!)