Skip to content

Commit 68b8d1e

Browse files
committed
docs: explicitly mention decorated methods
ref #1038 and #1484
1 parent fe68c06 commit 68b8d1e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/glossary.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ slotted classes
104104
105105
This situation can occur if you define an `attrs.field(init=False)` and don't set the attribute by hand before pickling.
106106
107+
- You can't call a bare `super()` in a decorated method like `contextlib.contextmanager`.
108+
Use `super(YourClass, self)` until we get a way to work around this from Python.
109+
See also [#1038](https://github.com/python-attrs/attrs/issues/1038) for more details.
110+
107111
108112
field
109113
As the project name suggests, *attrs* is all about attributes.

0 commit comments

Comments
 (0)