srijan-deepsource / readthedocs.org

Errors detected in .deepsource.toml.

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 inner_view function
18    """
19
20    @wraps(view_func)
21    def inner_view(  # noqa22            request, subproject=None, subproject_slug=None, *args, **kwargs
23    ):
24        if subproject is None and subproject_slug:
Keyword argument before variable positional arguments list in the definition of inner_view function
59    """
60
61    @wraps(view_func)
62    def inner_view(  # noqa63            request, project=None, project_slug=None, *args, **kwargs
64    ):
65        if project is None:
Keyword argument before variable positional arguments list in the definition of add function
 68            safe_messages.append(message)
 69        return safe_messages, all_ret
 70
 71    def add(self, level, message, extra_tags='', *args, **kwargs):  # noqa 72        user = kwargs.get('user') or self.request.user
 73        if not user.is_anonymous:
 74            persist_messages = (