File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 1010import sys
1111import traceback
1212import uuid
13- import warnings
1413from abc import ABC , abstractmethod
1514from dataclasses import dataclass
1615from datetime import datetime
@@ -557,13 +556,7 @@ def encoding(self) -> str:
557556
558557 def to_payload (self , value : Any ) -> Optional [temporalio .api .common .v1 .Payload ]:
559558 """See base class."""
560- # Check for pydantic then send warning
561- # TODO (dan): update
562- if hasattr (value , "parse_obj" ):
563- warnings .warn (
564- "If you're using a pydantic model, refer to https://github.com/temporalio/samples-python/tree/main/pydantic_converter for better support"
565- )
566- # We let JSON conversion errors be thrown to caller
559+ # Let JSON conversion errors be thrown to caller
567560 return temporalio .api .common .v1 .Payload (
568561 metadata = {"encoding" : self ._encoding .encode ()},
569562 data = json .dumps (
You can’t perform that action at this time.
0 commit comments