Skip to content

Commit e7e7bd8

Browse files
kwagyemanclaude
andcommitted
tests/cpydiff: Use literal markup for __init__ in exception_construction.
The description and workaround wrapped __init__ in single backticks. With Sphinx default_role="any", that became an unresolved :any: xref ("reference target not found: __init__"). Use double backticks for literal code, matching the same test's ``super().__init__`` markup. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent cadf300 commit e7e7bd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/cpydiff/core_exception_construction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
"""
22
categories: Core,Exceptions
3-
description: Throwing a derived exception class instance in its `__init__` without first calling ``super().__init__`` is a TypeError
3+
description: Throwing a derived exception class instance in its ``__init__`` without first calling ``super().__init__`` is a TypeError
44
cause: In MicroPython, an object is incompletely constructed if it does not call its superclass init function or return normally from its ``__init__``. This prevents its usage in some circumstances.
5-
workaround: Call the superclass `__init__` method before raising the exception.
5+
workaround: Call the superclass ``__init__`` method before raising the exception.
66
"""
77

88

0 commit comments

Comments
 (0)