From 5aa028b8cbf2649c8a1ebc6a584a6c0c68db07b7 Mon Sep 17 00:00:00 2001 From: El De-dog-lo <3859395+fubuloubu@users.noreply.github.com> Date: Sun, 28 Apr 2024 12:44:45 -0400 Subject: [PATCH] fix: allow mypy to detect internalType not required (#124) --- ethpm_types/abi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethpm_types/abi.py b/ethpm_types/abi.py index 75752cd..d5a8573 100644 --- a/ethpm_types/abi.py +++ b/ethpm_types/abi.py @@ -25,7 +25,7 @@ class ABIType(BaseModel): Tuples and structs tend to have this field. """ - internal_type: Optional[str] = Field(None, alias="internalType") + internal_type: Optional[str] = Field(default=None, alias="internalType") """ Another name for the type. Sometimes, compilers are able to populate this field with the struct or enum name.