(self, class_info: ClassInfo, name: str, obj: object)
| 557 | return inspect.isfunction(obj) |
| 558 | |
| 559 | def is_classmethod(self, class_info: ClassInfo, name: str, obj: object) -> bool: |
| 560 | if self.is_c_module: |
| 561 | return inspect.isbuiltin(obj) or type(obj).__name__ in ( |
| 562 | "classmethod", |
| 563 | "classmethod_descriptor", |
| 564 | ) |
| 565 | else: |
| 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: |
no test coverage detected