Commit 9721637
committed
EXREnumBase가 Enum만 상속하도록 변경하다
Python은 다중상속을 지원하는 언이지만, metaclass의 다중상속을 허용하지 않는다.
> class EXREnumBase(Enum, metaclass=ABCMeta):
E TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases1 parent 07d14b9 commit 9721637
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | 2 | | |
5 | 3 | | |
6 | | - | |
| 4 | + | |
7 | 5 | | |
0 commit comments