mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-20 22:38:11 +00:00
Clean up startswith method in setup.py
`value.startswith(("uint", "Bytes", "ByteList", "Union"))`
This commit is contained in:
parent
125bf22494
commit
0bd3e0286b
2
setup.py
2
setup.py
@ -223,7 +223,7 @@ def get_spec(file_name: Path, preset: Dict[str, str], config: Dict[str, str]) ->
|
||||
|
||||
if not _is_constant_id(name):
|
||||
# Check for short type declarations
|
||||
if value.startswith("uint") or value.startswith("Bytes") or value.startswith("ByteList") or value.startswith("Union"):
|
||||
if value.startswith(("uint", "Bytes", "ByteList", "Union")):
|
||||
custom_types[name] = value
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user