Ensure inspect.getsource() works for adapters and fix argument specification/signature issues.