Skip to content

Commit

Permalink
chore: proper snake casing
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwise-constructs committed Jun 12, 2024
1 parent 2b2269c commit 18e505f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eth_pydantic_types/hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,31 +117,31 @@ def _make_hash_cls(size: int, base_type: Type, signed: bool = True):
if issubclass(base_type, bytes):
suffix = "Bytes"
base_type = HashBytes
typeDict = dict(
type_dict = dict(
size=size,
schema_pattern=_get_hash_pattern(str_size),
schema_examples=_get_hash_examples(str_size),
)
elif issubclass(base_type, str):
suffix = "Str"
base_type = HashStr
typeDict = dict(
type_dict = dict(
size=size,
schema_pattern=_get_hash_pattern(str_size),
schema_examples=_get_hash_examples(str_size),
)
else:
suffix = "Int" if signed else "UInt"
base_type = HashInt
typeDict = dict(
type_dict = dict(
size=size,
signed=signed,
)

return type(
f"Hash{suffix}{size}",
(base_type,),
typeDict,
type_dict,
)


Expand Down

0 comments on commit 18e505f

Please sign in to comment.