Skip to content

Commit b979cfc

Browse files
committed
Fix cross-refs
1 parent 531b67c commit b979cfc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

class_singledispatch/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ def register(
144144
"""
145145
Register a new function as a dispatcher for `cls`.
146146
147-
For usage guide, please see the [`class_singledispatch`][class_singledispatch]
147+
For usage guide, please see the
148+
[`class_singledispatch`][class_singledispatch.class_singledispatch]
148149
documentation.
149150
"""
150151
if isinstance(cls, type):
@@ -175,12 +176,13 @@ def class_singledispatch(
175176
/,
176177
) -> _ClassSingleDispatchCallable[_R]:
177178
"""
178-
Use [`functools.singledispatch`][functools.singledispatch] to singledispatch
179+
Use [`functools.singledispatch`][functools.singledispatch] to dispatch
179180
classes as parameters.
180181
181182
While `singledispatch` examines the class of the first user argument,
182-
[class_singledispatch][] uses the first argument as the class itself and performs
183-
the same task with it as `singledispatch`.
183+
[`class_singledispatch`][class_singledispatch.class_singledispatch] uses
184+
the first argument as the class itself and performs the same task with it
185+
as `singledispatch`.
184186
185187
```python
186188
class T:

0 commit comments

Comments
 (0)