Skip to content

Commit cccea36

Browse files
committed
Clean up
1 parent 95bddc8 commit cccea36

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

temporalio/converter.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import sys
1111
import traceback
1212
import uuid
13-
import warnings
1413
from abc import ABC, abstractmethod
1514
from dataclasses import dataclass
1615
from 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(

0 commit comments

Comments
 (0)