Mr-Ruben opened a new issue, #554:
URL: https://github.com/apache/burr/issues/554

   
   
   Please, correct me if I am wrong.
   
   
   If one does use this
   
   ```python
   from burr.core import ApplicationBuilder
   from burr.integrations.pydantic import PydanticTypingSystem
   
   app = (
       ApplicationBuilder()
       .with_actions(...)
       .with_entrypoint(...)
       .with_transitions(...)
       .with_typing(PydanticTypingSystem(ApplicationState))
       .with_state(ApplicationState())
       .build()
   )
   ```
   
   
   this won't have any effect (is useless)
   
   
   ```python
   from typing import Any, Dict
   from burr.core import serde
   
   @serde.serialize.register(ApplicationState)
   def serialize_myclass(value: ApplicationState, myclass_kwargs: dict = None, 
**kwargs) -> dict:
       """Serializes the value using my custom methodology.
   
       ...
   
   ```
   
   
   nor this
   
   
   
   ```python
   from burr.core import ApplicationBuilder, State 
   
   from typing import Any, Dict
   from burr.core import serde
   
   @serde.serialize.register(State)
   def serialize_myclass(value: State, myclass_kwargs: dict = None, **kwargs) 
-> dict:
       """Serializes the value using my custom methodology.
   
       ...
   
   ```
   
   
   however, if I am not mistaken, https://burr.dagworks.io/concepts/serde/ does 
not mention those 2 important limitations / caveats.
   


-- 
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