Changes between Version 2 and Version 3 of Ticket #35641


Ignore:
Timestamp:
Jul 30, 2024, 3:49:49 AM (5 months ago)
Author:
Johan Dahlin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35641 – Description

    v2 v3  
    2828}}}
    2929
    30 Since __match_args__ must be a tuple, the attribute must be generated inside a metaclass.
    31 
    32 ~~{{{#!python
    33     @property
    34     def __match_args__(self) -> tuple[str, ...]:
    35         return tuple(f.name for f in self._meta.get_fields())
    36 }}}~~
    37 
    3830Happy to create a PR if this is interesting.
Back to Top