Skip to content

Commit

Permalink
feat: optimize StringToIntEnumMeta.__call__ (#33)
Browse files Browse the repository at this point in the history
* feat: optimize `StringToIntEnumMeta.__call__`

* chore: `black .`

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
BobTheBuidler and github-actions[bot] authored Dec 16, 2024
1 parent 34e1916 commit a9f230e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evmspec/data/_enum.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ def __call__(cls, value: Union[str, int], *args, **kw):
- :class:`EnumMeta`
- :meth:`EnumMeta.__call__`
"""
return super().__call__(cls._member_map_.get(value, value), *args, **kw) # type: ignore [arg-type]
return EnumMeta.__call__(self, cls._member_map_.get(value, value), *args, **kw) # type: ignore [arg-type]

0 comments on commit a9f230e

Please sign in to comment.