On 06/06/2024 19:52, Jeremy Spewock wrote:
+@classmethod
+def from_str(cls, text: str):
+match text:
+case "black":
+return cls.BLACK
+case "white":
+
Just a few very minor documentation catches, otherwise:
Reviewed-by: Jeremy Spewock
On Thu, Jun 6, 2024 at 5:17 AM Luca Vizzarro wrote:
> +@classmethod
> +def from_str(cls, text: str):
> +match text:
> +case "black":
>
Adds parsing text into a custom dataclass. It provides a new
`TextParser` dataclass to be inherited. This implements the `parse`
method, which combined with the parser functions, it can automatically
parse the value for each field.
This new utility will facilitate and simplify the parsing of compl
3 matches
Mail list logo