Fix links

This commit is contained in:
Hynek Schlawack 2023-12-31 07:19:11 +01:00
parent 5688711bd8
commit 41df262f2d
No known key found for this signature in database
GPG Key ID: AE2536227F69F181
2 changed files with 2 additions and 2 deletions

View File

@ -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)
>

View File

@ -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.