No value for argument 'results_granularity' in method call
1166 def get_earned_usage_per_day(
1167 self, start, end, customer, group_by=[], proration=None
1168 ):
1169 per_customer = self.get_usage(1170 start=start,
1171 end=end,
1172 granularity=USAGE_CALC_GRANULARITY.DAILY,
Description
A required function parameter isn't provided while calling the function. This is an error.
Bad practice
def add_student(student, section):
students[section].append(student)
add_student("Aaron") # Missing parameter `section`
Recommended
def add_student(student, section):
students[section].append(student)
add_student("Aaron", "10A")