| 2142 | return x |
| 2143 | |
| 2144 | class A: |
| 2145 | @self.module.lru_cache |
| 2146 | def test_method(self, x): |
| 2147 | return (self, x) |
| 2148 | |
| 2149 | @staticmethod |
| 2150 | @self.module.lru_cache |
| 2151 | def test_staticmethod(x): |
| 2152 | return (self, x) |
| 2153 | |
| 2154 | refs = [weakref.ref(test_function), |
| 2155 | weakref.ref(A.test_method), |
no outgoing calls