Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support for Callable type #279
It would be great if
from typing import Type, Callable, Any from pydantic import BaseModel def useless(x: Any) -> Any: return x class DemoModel(BaseModel): t: Callable[..., Any] print(DemoModel(t=useless)) ...