Skip to content

Commit 38aea60

Browse files
authored
Use proper string type (ImportString)
1 parent 9b68de4 commit 38aea60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webhooks_automata/union_models/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import abc
22
import asyncio
33
from typing import Literal, TYPE_CHECKING, Union
4-
from pydantic import BaseModel
4+
from pydantic import BaseModel, ImportString
55

66
if TYPE_CHECKING:
77
import starlette.requests
@@ -49,7 +49,7 @@ async def perform_action(self, request):
4949

5050
class CallableAction(ActionBase):
5151
type: Literal["callable"]
52-
callable: str
52+
callable: ImportString
5353

5454
async def perform_action(self, request):
5555
pass

0 commit comments

Comments
 (0)