Skip to content

Commit 109a1e4

Browse files
committed
Resolve the error for the high dependency on pydantic
1 parent 95321d7 commit 109a1e4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/dubbo/classes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import threading
1919
from typing import Any, Callable, Optional, Union,Type
2020
from abc import ABC, abstractmethod
21-
from pydantic import BaseModel
2221
from dubbo.types import DeserializingFunction, RpcType, RpcTypes, SerializingFunction
2322

2423
__all__ = [
@@ -249,7 +248,7 @@ class ReadWriteStream(ReadStream, WriteStream, abc.ABC):
249248

250249

251250
class Codec(ABC):
252-
def __init__(self, model_type: Type[BaseModel] = None, **kwargs):
251+
def __init__(self, model_type: Optional[Type[Any]] = None, **kwargs):
253252
self.model_type = model_type
254253

255254
@abstractmethod

0 commit comments

Comments
 (0)