From 0bd3e0286b6917f744211a45b81275839db4e4e5 Mon Sep 17 00:00:00 2001 From: "Sam.An" <56215891+sammiee5311@users.noreply.github.com> Date: Fri, 27 Aug 2021 10:12:19 +0900 Subject: [PATCH] Clean up startswith method in setup.py `value.startswith(("uint", "Bytes", "ByteList", "Union"))` --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ccc3afbe4..281e292dc 100644 --- a/setup.py +++ b/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