function already defined line 806
817
818
819@hooks.before("Group > Groups under an User > List All Groups under an User")
820def group_get_list(transaction): 821 """
822 GET /users/1/groups
823 :param transaction:
Description
A function, method or class is being redefined in the same scope. This would override the original definition, and doing this is strongly discouraged. Please verify that this is something that you intended to do. Redefining anything can lead to confusion, decreases code readability and may cause bugs that are difficult to diagnose. It is recommended either to refactor the function/method/class, or choose different names.
Bad practice
def calc(x, y):
return x + y
def calc(x, y):
return x * y
Recommended
def calc_sum(x, y):
return x + y
def calc_product(x, y):
return x * y