Return true if the object is any kind of function or method.
(object)
| 443 | return isinstance(object, types.MethodWrapperType) |
| 444 | |
| 445 | def isroutine(object): |
| 446 | """Return true if the object is any kind of function or method.""" |
| 447 | return (isbuiltin(object) |
| 448 | or isfunction(object) |
| 449 | or ismethod(object) |
| 450 | or ismethoddescriptor(object) |
| 451 | or ismethodwrapper(object) |
| 452 | or isinstance(object, functools._singledispatchmethod_get)) |
| 453 | |
| 454 | def isabstract(object): |
| 455 | """Return true if the object is an abstract base class (ABC).""" |
no test coverage detected
searching dependent graphs…