(self, name: str)
| 117 | __slots__ = ("_cache", "_import_python_module") |
| 118 | |
| 119 | def _get_cached_method(self, name: str) -> Callable: |
| 120 | if not hasattr(self, "_cache"): |
| 121 | cache = self._cache = {} # pylint: disable=attribute-defined-outside-init |
| 122 | else: |
| 123 | cache = self._cache |
| 124 | if name not in cache: |
| 125 | func = cache[name] = self.get_global_func(name) |
| 126 | else: |
| 127 | func = cache[name] |
| 128 | return func |
| 129 | |
| 130 | def empty( |
| 131 | self, |
no test coverage detected