Skip to content

Commit a59c5d7

Browse files
committed
docs: fix intersphinx links
1 parent 2afd663 commit a59c5d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ slotted classes
9797
- Since it's currently impossible to make a class slotted after it's been created, *attrs* has to replace your class with a new one.
9898
While it tries to do that as graciously as possible, certain metaclass features like {meth}`object.__init_subclass__` do not work with slotted classes.
9999
100-
- The {attr}`class.__subclasses__` attribute needs a garbage collection run (which can be manually triggered using {func}`gc.collect`), for the original class to be removed.
100+
- The {attr}`type.__subclasses__` attribute needs a garbage collection run (which can be manually triggered using {func}`gc.collect`), for the original class to be removed.
101101
See issue [#407](https://github.com/python-attrs/attrs/issues/407) for more details.
102102
103103
- Pickling of slotted classes will fail if you define a class with missing attributes.

docs/why.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Other often surprising behaviors include:
114114
# ...
115115
```
116116

117-
you end up with a class that has *two* `Point`s in its {attr}`__mro__ <class.__mro__>`: `[<class 'point.Point'>, <class 'point.Point'>, <type 'tuple'>, <type 'object'>]`.
117+
you end up with a class that has *two* `Point`s in its {attr}`__mro__ <type.__mro__>`: `[<class 'point.Point'>, <class 'point.Point'>, <type 'tuple'>, <type 'object'>]`.
118118

119119
That's not only confusing, it also has very practical consequences:
120120
for example if you create documentation that includes class hierarchies like [*Sphinx*'s autodoc](https://www.sphinx-doc.org/en/stable/usage/extensions/autodoc.html) with `show-inheritance`.

0 commit comments

Comments
 (0)