Merge pull request #2573 from sammiee5311/cleanups-startswith-method

Clean up startswith method in `setup.py`
This commit is contained in:
Hsiao-Wei Wang 2021-08-27 13:18:13 +08:00 committed by GitHub
commit fff03a96d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -223,7 +223,7 @@ def get_spec(file_name: Path, preset: Dict[str, str], config: Dict[str, str]) ->
if not _is_constant_id(name): if not _is_constant_id(name):
# Check for short type declarations # 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 custom_types[name] = value
continue continue