예제 #1
0
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
예제 #2
0
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
예제 #3
0
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