Skip to content

Commit a173c94

Browse files
committed
apply suggestions
1 parent f94601c commit a173c94

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,8 @@ peps/pep-0777.rst @warsaw
659659
# ...
660660
peps/pep-0779.rst @Yhg1s @colesbury @mpage
661661
# ...
662+
peps/pep-0781.rst @methane
663+
# ...
662664
peps/pep-0789.rst @njsmith
663665
# ...
664666
peps/pep-0801.rst @warsaw

peps/pep-0781.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ PEP: 781
22
Title: Adding __type_checking__ constant
33
Author: Inada Naoki <songofacandy@gmail.com>
44
Discussions-To: https://discuss.python.org/t/85728
5+
Post-History: 11-Jan-2025 https://discuss.python.org/t/76766
56
Status: Draft
67
Type: Standards Track
78
Topic: Typing
@@ -39,7 +40,8 @@ environments like WASM or micropython.
3940
Specification
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``.
4345
It can be used in the same way as ``False``, except it can not be used as
4446
a matching pattern.
4547

@@ -53,7 +55,7 @@ Rationale
5355
Difference 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.
5759
Not adding a new keyword is attractive, but it requires special handling in
5860
both the compiler and the runtime to change the value of the constant
5961
depending on the startup option.

0 commit comments

Comments
 (0)