File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -659,6 +659,8 @@ peps/pep-0777.rst @warsaw
659659# ...
660660peps /pep-0779.rst @ Yhg1s @ colesbury @ mpage
661661# ...
662+ peps /pep-0781.rst @ methane
663+ # ...
662664peps /pep-0789.rst @ njsmith
663665# ...
664666peps /pep-0801.rst @ warsaw
Original file line number Diff line number Diff line change 22Title: Adding __type_checking__ constant
33Author: Inada Naoki <songofacandy@gmail.com>
44Discussions-To: https://discuss.python.org/t/85728
5+ Post-History: 11-Jan-2025 https://discuss.python.org/t/76766
56Status: Draft
67Type: Standards Track
78Topic: Typing
@@ -39,7 +40,8 @@ environments like WASM or micropython.
3940Specification
4041=============
4142
42- ``__type_checking__ `` is a keyword and its value is ``False ``.
43+ ``__type_checking__ `` is a :ref: `keyword <python:keywords >` and its value is
44+ ``False ``.
4345It can be used in the same way as ``False ``, except it can not be used as
4446a matching pattern.
4547
@@ -53,7 +55,7 @@ Rationale
5355Difference from ``__debug__ ``
5456-----------------------------
5557
56- `` __debug__ ` ` is not a keyword, but a built-in constant.
58+ :data: ` __debug__ ` is not a keyword, but a built-in constant.
5759Not adding a new keyword is attractive, but it requires special handling in
5860both the compiler and the runtime to change the value of the constant
5961depending on the startup option.
You can’t perform that action at this time.
0 commit comments