Commit fbb2b01
committed
refactor: replace _AutoNamedFieldsMetaclass with __set_name__
_AutoNamedFieldsMetaclass was a hand-rolled way of capturing each
Field's name as it is defined on an XBlock. Since Python 3.6,
__set_name__ is part of the built-in Descriptor interface, providing
a more elegant way of achieving the same thing.1 parent abb10af commit fbb2b01
2 files changed
Lines changed: 8 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 41 | + | |
82 | 42 | | |
83 | 43 | | |
84 | 44 | | |
| |||
645 | 605 | | |
646 | 606 | | |
647 | 607 | | |
648 | | - | |
| 608 | + | |
649 | 609 | | |
650 | 610 | | |
651 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
334 | 340 | | |
335 | 341 | | |
336 | 342 | | |
| |||
0 commit comments