Skip to content

Commit c2a7a5c

Browse files
correct refs, and also rephrase
1 parent 2770774 commit c2a7a5c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/source/error_code_list2.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,9 @@ Example:
506506
# Python 3.8, or Python 3.9
507507
42 + "testing..." # type: ignore
508508
509-
If a narrower code is ignored by specifying a wider code, this counts as an instance of unused-ignore. (The wider code is, conceptually, partially unused.) For more information about the concepts of codes that contain each other, see :ref:`subcodes-of-error-codes`.
509+
If a narrower code (a subcode) is ignored by specifying a wider code, this counts
510+
as an instance of unused-ignore. (The wider code is, conceptually, partially unused.)
511+
For more information about subcodes, see :ref:`subcodes-of-error-codes`.
510512

511513
.. _code-explicit-override:
512514

docs/source/error_codes.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ So one can e.g. enable some code globally, disable it for all tests in
9999
the corresponding config section, and then re-enable it with an inline
100100
comment in some specific test.
101101

102+
.. _subcodes-of-error-codes:
103+
102104
Subcodes of error codes
103105
-----------------------
104106

@@ -110,7 +112,9 @@ is a subcode of another one, it will be mentioned in the documentation for the n
110112
code. This hierarchy is not nested: there cannot be subcodes of other
111113
subcodes.
112114

113-
If a narrower code is ignored by specifying a wider code, this counts as an instance of :ref:`unused-ignore<code-unused-ignore>`. (The wider code is, conceptually, partially unused.)
115+
If a narrower code is ignored by specifying a wider code, this counts as an instance of
116+
:ref:`unused-ignore<code-unused-ignore>`. (The wider code is, conceptually, partially
117+
unused.)
114118

115119
Requiring error codes
116120
---------------------

0 commit comments

Comments
 (0)