Skip to content

Commit fbfa9d1

Browse files
committed
test: Fix method signatures to match Django
otherwise pylint complains
1 parent 1661738 commit fbfa9d1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pylint_django/tests/input/func_noerror_classviews.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,56 +23,56 @@ def get_context_data(self, **kwargs):
2323

2424

2525
class JsonGetView(View):
26-
def get(self, request):
26+
def get(self, request, *args, **kwargs):
2727
# do something with objects but don't use
2828
# self or request
2929
return JsonResponse({'rc': 0, 'response': 'ok'})
3030

3131

3232
class JsonPostView(View):
33-
def post(self, request):
33+
def post(self, request, *args, **kwargs):
3434
# do something with objects but don't use
3535
# self or request
3636
return JsonResponse({'rc': 0, 'response': 'ok'})
3737

3838

3939
class JsonPutView(View):
40-
def put(self, request):
40+
def put(self, request, *args, **kwargs):
4141
# do something with objects but don't use
4242
# self or request
4343
return JsonResponse({'rc': 0, 'response': 'ok'})
4444

4545

4646
class JsonPatchView(View):
47-
def patch(self, request):
47+
def patch(self, request, *args, **kwargs):
4848
# do something with objects but don't use
4949
# self or request
5050
return JsonResponse({'rc': 0, 'response': 'ok'})
5151

5252

5353
class JsonDeleteView(View):
54-
def delete(self, request):
54+
def delete(self, request, *args, **kwargs):
5555
# do something with objects but don't use
5656
# self or request
5757
return JsonResponse({'rc': 0, 'response': 'ok'})
5858

5959

6060
class JsonHeadView(View):
61-
def head(self, request):
61+
def head(self, request, *args, **kwargs):
6262
# do something with objects but don't use
6363
# self or request
6464
return JsonResponse({'rc': 0, 'response': 'ok'})
6565

6666

6767
class JsonOptionsView(View):
68-
def options(self, request):
68+
def options(self, request, *args, **kwargs):
6969
# do something with objects but don't use
7070
# self or request
7171
return JsonResponse({'rc': 0, 'response': 'ok'})
7272

7373

7474
class JsonTraceView(View):
75-
def trace(self, request):
75+
def trace(self, request, *args, **kwargs):
7676
# do something with objects but don't use
7777
# self or request
7878
return JsonResponse({'rc': 0, 'response': 'ok'})

0 commit comments

Comments
 (0)