File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments