Skip to content

Commit b6b1612

Browse files
Fix backtick formatting. (#49)
1 parent 8c35176 commit b6b1612

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

lang/en/typeshed/stdlib/log.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def set_labels(
3434
3535
:param *args: A positional argument for each log header.
3636
:param timestamp: The timestamp unit that will be automatically added as the first column in every row.
37-
Setting this argument to `None` disables the timestamp. Pass the ``log.MILLISECONDS``, ``log.SECONDS``, , ``log.MINUTES``, ``log.HOURS`` or ``log.DAYS`` values defined by this module. An invalid value will throw an exception.
37+
Setting this argument to ``None`` disables the timestamp. Pass the ``log.MILLISECONDS``, ``log.SECONDS``, , ``log.MINUTES``, ``log.HOURS`` or ``log.DAYS`` values defined by this module. An invalid value will throw an exception.
3838
"""
3939
...
4040

lang/en/typeshed/stdlib/microbit/__init__.pyi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def set_volume(v: int) -> None:
9898
...
9999

100100
class Button:
101-
"""The class for the buttons `button_a` and `button_b`."""
101+
"""The class for the buttons ``button_a`` and ``button_b``."""
102102

103103
def is_pressed(self) -> bool:
104104
"""Check if the button is pressed.
@@ -228,8 +228,8 @@ class MicroBitTouchPin(MicroBitAnalogDigitalPin):
228228
229229
Example: ``pin0.is_touched()``
230230
231-
The default touch mode for the pins on the edge connector is `resistive`.
232-
The default for the logo pin **V2** is `capacitive`.
231+
The default touch mode for the pins on the edge connector is ``resistive``.
232+
The default for the logo pin **V2** is ``capacitive``.
233233
234234
**Resistive touch**
235235
This test is done by measuring how much resistance there is between the
@@ -252,7 +252,7 @@ class MicroBitTouchPin(MicroBitAnalogDigitalPin):
252252
Example: ``pin0.set_touch_mode(pin0.CAPACITIVE)``
253253
254254
The default touch mode for the pins on the edge connector is
255-
`resistive`. The default for the logo pin **V2** is `capacitive`.
255+
``resistive``. The default for the logo pin **V2** is ``capacitive``.
256256
257257
:param value: ``CAPACITIVE`` or ``RESISTIVE`` from the relevant pin.
258258
"""

lang/en/typeshed/stdlib/micropython.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def heap_lock() -> None:
111111
112112
Example: ``micropython.heap_lock()``
113113
114-
When locked no memory allocation can occur and a `MemoryError` will be
114+
When locked no memory allocation can occur and a ``MemoryError`` will be
115115
raised if any heap allocation is attempted.
116116
"""
117117
...
@@ -121,13 +121,13 @@ def heap_unlock() -> None:
121121
122122
Example: ``micropython.heap_unlock()``
123123
124-
When locked no memory allocation can occur and a `MemoryError` will be
124+
When locked no memory allocation can occur and a ``MemoryError`` will be
125125
raised if any heap allocation is attempted.
126126
"""
127127
...
128128

129129
def kbd_intr(chr: int) -> None:
130-
"""Set the character that will raise a `KeyboardInterrupt` exception.
130+
"""Set the character that will raise a ``KeyboardInterrupt`` exception.
131131
132132
Example: ``micropython.kbd_intr(-1)``
133133

lang/en/typeshed/stdlib/sys.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ def exit(retval: object = ...) -> NoReturn:
77
88
Example: ``sys.exit(1)``
99
10-
This function raises a `SystemExit` exception. If an argument is given, its
11-
value given as an argument to `SystemExit`.
10+
This function raises a ``SystemExit`` exception. If an argument is given, its
11+
value given as an argument to ``SystemExit``.
1212
1313
:param retval: The exit code or message.
1414
"""
@@ -95,7 +95,7 @@ the original MicroPython reference board. It thus can be used to
9595
distinguish one board from another.
9696
9797
If you need to check whether your program runs on MicroPython (vs other
98-
Python implementation), use `sys.implementation` instead.
98+
Python implementation), use ``sys.implementation`` instead.
9999
"""
100100

101101
version: str

0 commit comments

Comments
 (0)