Commit d0a0e62
Make property setting robust to inheritance. (#54)
Use `getattr(self.__class__, property_name)` to get properties and set
them. This is compatible with using a class builder as a base class. In
my case, I'm extending class builders so that I can add constants for
enum values directly to the class definition rather than having to use
strings.1 parent 776a84c commit d0a0e62
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| |||
0 commit comments