From a9f230ed98955f2297b54f560580461fd8f99280 Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Mon, 16 Dec 2024 00:06:28 -0400 Subject: [PATCH] feat: optimize `StringToIntEnumMeta.__call__` (#33) * feat: optimize `StringToIntEnumMeta.__call__` * chore: `black .` --------- Co-authored-by: github-actions[bot] --- evmspec/data/_enum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evmspec/data/_enum.py b/evmspec/data/_enum.py index 604f7ca..76d3dd8 100644 --- a/evmspec/data/_enum.py +++ b/evmspec/data/_enum.py @@ -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]