(self, class_info: ClassInfo | None, name: str, obj: object)
| 566 | return inspect.ismethod(obj) |
| 567 | |
| 568 | def is_staticmethod(self, class_info: ClassInfo | None, name: str, obj: object) -> bool: |
| 569 | if class_info is None: |
| 570 | return False |
| 571 | elif self.is_c_module: |
| 572 | raw_lookup: Mapping[str, Any] = getattr(class_info.cls, "__dict__") # noqa: B009 |
| 573 | raw_value = raw_lookup.get(name, obj) |
| 574 | return isinstance(raw_value, staticmethod) |
| 575 | else: |
| 576 | return isinstance(inspect.getattr_static(class_info.cls, name), staticmethod) |
| 577 | |
| 578 | @staticmethod |
| 579 | def is_abstract_method(obj: object) -> bool: |
no test coverage detected