hassan11196 / QRSMS-V1

Keyword argument defined before variable positional arguments PYL-W1113
Anti-pattern
Major
4 years ago4 years old
Keyword argument before variable positional arguments list in the definition of create function
100        super(User, self).__init__(*args, **kwargs)
101
102    @classmethod
103    def create(cls, username, password, is_teacher=False, is_maintainer=False, is_student=False, is_employee=False, is_faculty=False, employee=None, *args, **kwargs):104        if is_faculty or is_teacher:
105            is_employee = True
106            if employee is None: