From 41df262f2d2e80b3bf95233b43e0912d660be672 Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Sun, 31 Dec 2023 07:19:11 +0100 Subject: [PATCH] Fix links --- CHANGELOG.md | 2 +- docs/glossary.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ceb88947..6602411e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -584,7 +584,7 @@ See https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md#chan That callable must return a string and is then used for formatting the attribute by the generated `__repr__()` method. [#568](https://github.com/python-attrs/attrs/issues/568) - Added `attr.__version_info__` that can be used to reliably check the version of `attrs` and write forward- and backward-compatible code. - Please check out the [section on deprecated APIs](https://www.attrs.org/en/stable/api.html#deprecated-apis) on how to use it. + Please check out the [section on deprecated APIs](https://www.attrs.org/en/stable/api-attr.html#deprecated-apis) on how to use it. [#580](https://github.com/python-attrs/attrs/issues/580) > diff --git a/docs/glossary.md b/docs/glossary.md index 40f31487..6b09a3ad 100644 --- a/docs/glossary.md +++ b/docs/glossary.md @@ -43,7 +43,7 @@ slotted classes - Slotted classes can inherit from other classes just like non-slotted classes, but some of the benefits of slotted classes are lost if you do that. If you must inherit from other classes, try to inherit only from other slotted classes. - - However, [it's not possible](https://docs.python.org/3/reference/datamodel.html#notes-on-using-slots) to inherit from more than one class that has attributes in `__slots__` (you will get an `TypeError: multiple bases have instance lay-out conflict`). + - However, [it's not possible](https://docs.python.org/3/reference/datamodel.html#slots) to inherit from more than one class that has attributes in `__slots__` (you will get an `TypeError: multiple bases have instance lay-out conflict`). - It's not possible to monkeypatch methods on slotted classes. This can feel limiting in test code, however the need to monkeypatch your own classes is usually a design smell.