Changes between Initial Version and Version 1 of Ticket #35179
- Timestamp:
- Feb 9, 2024, 10:04:11 AM (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #35179
- Property Summary Admindocs omits model methods containing only keyword-only arguments → Admindocs treats model some model methods containing positional-only arguments or keyword-only arguments as attributes
-
Ticket #35179 – Description
initial v1 3 3 {{{ 4 4 class Foo(Model): 5 def arg_and_kwarg_only_method(self, arg, *, kwarg): ... 5 def arg_kwarg_method(self, arg, kwarg=None): ... 6 def posarg_only_method(self, posarg, /): ... 6 7 def kwarg_only_method(self, *, kwarg): ... 8 def posarg_only_and_kwarg_only_method(self, posarg, /, *, kwarg): ... 9 def posarg_only_and_arg_and_kwarg_only_method(self, posarg, /, arg, *, kwarg): ... 7 10 }}} 8 11 9 The method `arg_and_kwarg_only_method()` will be documented but `kwarg_only_method()` will be omitted. 12 The following are documented as methods: 13 - `arg_kwarg_method()` 14 - `posarg_only_method()` 15 - `posarg_only_and_kwarg_only_method()` 16 17 The following are documented as attributes: 18 - `kwarg_only_method()` 19 - `posarg_only_and_arg_and_kwarg_only_method()`