Changes between Initial Version and Version 1 of Ticket #35179


Ignore:
Timestamp:
Feb 9, 2024, 10:04:11 AM (10 months ago)
Author:
David Sanders
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35179

    • Property Summary Admindocs omits model methods containing only keyword-only argumentsAdmindocs treats model some model methods containing positional-only arguments or keyword-only arguments as attributes
  • Ticket #35179 – Description

    initial v1  
    33{{{
    44class 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, /): ...
    67    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): ...
    710}}}
    811
    9 The method `arg_and_kwarg_only_method()` will be documented but `kwarg_only_method()` will be omitted.
     12The following are documented as methods:
     13 - `arg_kwarg_method()`
     14 - `posarg_only_method()`
     15 - `posarg_only_and_kwarg_only_method()`
     16
     17The following are documented as attributes:
     18 - `kwarg_only_method()`
     19 - `posarg_only_and_arg_and_kwarg_only_method()`
Back to Top