henrikingo opened a new issue, #78:
URL: https://github.com/apache/otava/issues/78

   The Series and AnalyzedSeries classes support serializing themselves into 
json, via series.as_json() calls. This is not pythonic at all. 
(https://github.com/apache/otava/blob/8bb5e8eaaf8d0880650ad382c557963912e9454d/otava/series.py#L109)
   
   It seems the modern best practice is to use Pydantic classes, which are like 
@dataclasses but better. In particular, a pydantic object can just be cast to 
dict(obj) or alternatively to json. 
https://docs.pydantic.dev/latest/concepts/serialization/


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to