(
self, name: str, *, prefer_method: bool = False
)
| 319 | return f"{exported_name(self.fullname)}Object" |
| 320 | |
| 321 | def get_method_and_class( |
| 322 | self, name: str, *, prefer_method: bool = False |
| 323 | ) -> tuple[FuncIR, ClassIR] | None: |
| 324 | for ir in self.mro: |
| 325 | if name in ir.methods: |
| 326 | func_ir = ir.methods[name] |
| 327 | if not prefer_method and func_ir.decl.implicit: |
| 328 | # This is an implicit accessor, so there is also an attribute definition |
| 329 | # which the caller prefers. This happens if an attribute overrides a |
| 330 | # property. |
| 331 | return None |
| 332 | return func_ir, ir |
| 333 | |
| 334 | return None |
| 335 | |
| 336 | def get_method(self, name: str, *, prefer_method: bool = False) -> FuncIR | None: |
| 337 | res = self.get_method_and_class(name, prefer_method=prefer_method) |
no outgoing calls
no test coverage detected