src/pymoc/utils/has_method.py

Summary

Maintainability
A
0 mins
Test Coverage
F
0%

def has_method(obj, method_name):
  return hasattr(obj, method_name) and callable(getattr(obj, method_name))