Add `SSZVariableName` custom type

This commit is contained in:
Hsiao-Wei Wang 2019-08-15 19:01:40 +08:00
parent 2741a5f33d
commit 8e1333aad1
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
2 changed files with 5 additions and 1 deletions

View File

@ -55,6 +55,7 @@ from eth2spec.utils.ssz.ssz_impl import (
)
from eth2spec.utils.ssz.ssz_typing import (
BasicValue, Elements, BaseList, SSZType,
SSZVariableName,
Container, List, Vector, Bytes, BytesN, Bitlist, Bitvector, Bits,
Bytes1, Bytes4, Bytes8, Bytes32, Bytes48, Bytes96,
uint64, bit, boolean,

View File

@ -1,8 +1,11 @@
from typing import Dict, Iterator
from typing import Dict, Iterator, NewType
import copy
from types import GeneratorType
SSZVariableName = NewType('SSZVariableName', str)
class DefaultingTypeMeta(type):
def default(cls):
raise Exception("Not implemented")