Skip to content

Commit 8fc7e33

Browse files
committed
Fix view.args and view.kwargs types
Args should be a tuple and kwargs a dict so that Pylint gets the types correct.
1 parent 9acfea3 commit 8fc7e33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pylint_django/transforms/transforms/django_views_generic_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class View(object):
22
request = None
3-
args = None
4-
kwargs = None
3+
args = ()
4+
kwargs = {}
55

66
# as_view is marked as class-only
77
def as_view(*args, **kwargs):

0 commit comments

Comments
 (0)