def get_signature_end(function, class_aliases={}): signature_end = Signature(function).format_args() if utils.ismethod(function): signature_end = signature_end.replace('(self, ', '(') signature_end = signature_end.replace('(self)', '()') for dotted_path, alias in class_aliases.items(): signature_end = signature_end.replace(dotted_path, alias) return signature_end
def get_signature_end(function): signature_end = Signature(function).format_args() if ismethod(function): signature_end = signature_end.replace("(self, ", "(") signature_end = signature_end.replace("(self)", "()") return signature_end
def get_signature_end(function): signature_end = Signature(function).format_args() if utils.ismethod(function): signature_end = signature_end.replace('(self, ', '(') signature_end = signature_end.replace('(self)', '()') return signature_end