def _patched_callable(obj):
    """Monkeypatch to allow autospec'ed classmethods and staticmethods."""
if isinstance(obj, type):
    return True
How to patch classmethod with autospec in unmocked class?