There was an error while loading. Please reload this page.
1 parent 0d2cd55 commit aa50117Copy full SHA for aa50117
docs/examples.rst
@@ -94,7 +94,10 @@ This is useful in times when you want to enhance classes that are not yours (nic
94
>>> class SomethingFromSomeoneElse(object):
95
... def __init__(self, x):
96
... self.x = x
97
- >>> SomethingFromSomeoneElse = attr.s(these={"x": attr.ib()}, init=False)(SomethingFromSomeoneElse)
+ >>> SomethingFromSomeoneElse = attr.s(
98
+ ... these={
99
+ ... "x": attr.ib()
100
+ ... }, init=False)(SomethingFromSomeoneElse)
101
>>> SomethingFromSomeoneElse(1)
102
SomethingFromSomeoneElse(x=1)
103
0 commit comments