| Total Complexity | 0 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from structured_data import enum |
||
| 2 | |||
| 3 | |||
| 4 | @enum.enum |
||
| 5 | class Basic: |
||
| 6 | |||
| 7 | Left: enum.Ctor[int] |
||
| 8 | Right: enum.Ctor[str] |
||
| 9 | |||
| 10 | left_type = (int,) |
||
| 11 | right_type = (str,) |
||
| 12 | |||
| 13 | |||
| 14 | @enum.enum |
||
| 15 | class StringedInternally: |
||
| 16 | |||
| 17 | Left: enum.Ctor['int'] |
||
| 18 | Right: enum.Ctor['str'] |
||
| 19 | |||
| 20 | left_type = (int,) |
||
| 21 | right_type = (str,) |
||
| 22 | |||
| 23 | |||
| 24 | @enum.enum |
||
| 25 | class StringedExternally: |
||
| 26 | |||
| 27 | Left: 'enum.Ctor[int]' |
||
| 28 | Right: 'enum.Ctor[str]' |
||
| 29 | |||
| 30 | left_type = (int,) |
||
| 31 | right_type = (str,) |
||
| 32 | |||
| 33 | |||
| 34 | @enum.enum |
||
| 35 | class Tupled: |
||
| 36 | |||
| 37 | Left: enum.Ctor[int, 'int'] |
||
| 38 | Right: "enum.Ctor[str, str]" |
||
| 39 | |||
| 40 | left_type = (int, int) |
||
| 41 | right_type = (str, str) |
||
| 42 | |||
| 43 | |||
| 44 | TEST_CLASSES = [ |
||
| 45 | Basic, StringedInternally, StringedExternally, Tupled] |
||
| 46 |