On Wed, Apr 10, 2024 at 11:51 AM Luca Vizzarro wrote:
>
> On 10/04/2024 10:15, Juraj Linkeš wrote:
> +
> +def value_only(metadata: dict[str, Any] = {}) -> dict[str, Any]:
> +"""Injects the value of the attribute as-is without flag. Metadata
> modifier for :func:`dataclasse
On 10/04/2024 10:15, Juraj Linkeš wrote:
+
+def value_only(metadata: dict[str, Any] = {}) -> dict[str, Any]:
+"""Injects the value of the attribute as-is without flag. Metadata modifier for
:func:`dataclasses.field`."""
+return {**metadata, META_VALUE_ONLY: True}
These methods, on the
On Tue, Apr 9, 2024 at 6:28 PM Luca Vizzarro wrote:
>
> Thank you so much for your review Juraj!
>
You're welcome!
> >> +
> >> +def value_only(metadata: dict[str, Any] = {}) -> dict[str, Any]:
> >> +"""Injects the value of the attribute as-is without flag. Metadata
> >> modifier for :func:`
Thank you so much for your review Juraj!
On 09/04/2024 13:10, Juraj Linkeš wrote:
We shouldn't list what the patch does, but rather explain the choices
made within. It seems to me the patch is here to give devs an API
instead of them having to construct strings - explaining why this
approach imp
Thank you for your review Jeremy!
On 28/03/2024 16:48, Jeremy Spewock wrote:
I might add some kind of block comment here as a separator that
delimits that metadata modifiers start here. Something like what is
written in scapy.py which creates sections for XML-RPC method vs ones
that are run by t
On Tue, Mar 26, 2024 at 8:04 PM Luca Vizzarro wrote:
>
> This commit introduces a new "params" module, which adds a new way
> to manage command line parameters. The provided Params dataclass
> is able to read the fields of its child class and produce a string
> representation to supply to the comm
Overall I like the idea of having a structured way of passing
command-line arguments to applications as strings and I think that
this is a well-abstracted approach. I also like that this approach
still supports the ability to pass strings "as-is" and use them as
parameters as well. That opens the d
This commit introduces a new "params" module, which adds a new way
to manage command line parameters. The provided Params dataclass
is able to read the fields of its child class and produce a string
representation to supply to the command line. Any data structure
that is intended to represent comma
8 matches
Mail list logo