79440438

Date: 2025-02-14 19:50:53
Score: 1
Natty:
Report link

i am using this native method of my class decorated by @dataclass @dataclass_json. Correct me if i am wrong, but this works for me recursively in python 3.9:

@dataclass
@dataclass_json)
class ExampleClass:
    example_parameter: float

then i am using schema() method:

json_string = "{example_parameter: 0}"
parsed_obj = ExampleClass.schema().loads(json_string, many=False)
Reasons:
  • Whitelisted phrase (-1): works for me
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @dataclass
  • User mentioned (0): @dataclass_json
  • Low reputation (1):
Posted by: overjoyedbrass