Skip to content

Commit 4916cbb

Browse files
feat: use cached property to save excessive calls to callable
1 parent e3e1801 commit 4916cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web3/method.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def __get__(
167167
def __call__(self, *args: Any, **kwargs: Any) -> Any:
168168
return self.__get__(self._module)(*args, **kwargs)
169169

170-
@property
170+
@functools.cached_property
171171
def method_selector_fn(
172172
self,
173173
) -> Callable[[], RPCEndpoint]:

0 commit comments

Comments
 (0)