Skip to content

Commit

Permalink
fix: allow mypy to detect internalType not required (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu authored Apr 28, 2024
1 parent ee92374 commit 5aa028b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethpm_types/abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5aa028b

Please sign in to comment.