Skip to content

Commit 55f7f2b

Browse files
authored
Updated docs to reference :pep: format (#3295)
1 parent 5471a37 commit 55f7f2b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docs/source/history.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ Removals without deprecations
125125
Miscellaneous internal changes
126126
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
127127

128-
- Switch to using PEP570 for positional-only arguments for `~trio.socket.SocketType`'s methods. (`#3094 <https://github.com/python-trio/trio/issues/3094>`__)
128+
- Switch to using :pep:`570` for positional-only arguments for `~trio.socket.SocketType`'s methods. (`#3094 <https://github.com/python-trio/trio/issues/3094>`__)
129129
- Improve type annotations in several places by removing `Any` usage. (`#3121 <https://github.com/python-trio/trio/issues/3121>`__)
130130
- Get and enforce 100% coverage (`#3159 <https://github.com/python-trio/trio/issues/3159>`__)
131131

@@ -1070,7 +1070,7 @@ Features
10701070
to make the task scheduler reproducible and avoid flaky tests. (`#890 <https://github.com/python-trio/trio/issues/890>`__)
10711071
- :class:`~trio.abc.SendChannel`, :class:`~trio.abc.ReceiveChannel`, :class:`~trio.abc.Listener`,
10721072
and :func:`~trio.open_memory_channel` can now be referenced using a generic type parameter
1073-
(the type of object sent over the channel or produced by the listener) using PEP 484 syntax:
1073+
(the type of object sent over the channel or produced by the listener) using :pep:`484` syntax:
10741074
``trio.abc.SendChannel[bytes]``, ``trio.abc.Listener[trio.SocketStream]``,
10751075
``trio.open_memory_channel[MyMessage](5)``, etc. The added type information does not change
10761076
the runtime semantics, but permits better integration with external static type checkers. (`#908 <https://github.com/python-trio/trio/issues/908>`__)

docs/source/reference-lowlevel.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,8 +1082,7 @@ issue #649 <https://github.com/python-trio/trio/issues/649>`__. For
10821082
more details on how coroutines work, we recommend André Caron's `A
10831083
tale of event loops
10841084
<https://github.com/AndreLouisCaron/a-tale-of-event-loops>`__, or
1085-
going straight to `PEP 492
1086-
<https://www.python.org/dev/peps/pep-0492/>`__ for the full details.
1085+
going straight to :pep:`492` for the full details.
10871086

10881087
.. autofunction:: permanently_detach_coroutine_object
10891088

0 commit comments

Comments
 (0)