mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #35179 -- Made admindocs detect positional/keyword-only arguments.
This commit is contained in:
committed by
Mariusz Felisiak
parent
bf692b2fdc
commit
e6fa74f020
@@ -54,6 +54,12 @@ class Person(models.Model):
|
||||
def dummy_function(self, baz, rox, *some_args, **some_kwargs):
|
||||
return some_kwargs
|
||||
|
||||
def dummy_function_keyword_only_arg(self, *, keyword_only_arg):
|
||||
return keyword_only_arg
|
||||
|
||||
def all_kinds_arg_function(self, position_only_arg, /, arg, *, kwarg):
|
||||
return position_only_arg, arg, kwarg
|
||||
|
||||
@property
|
||||
def a_property(self):
|
||||
return "a_property"
|
||||
|
||||
Reference in New Issue
Block a user