We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1ad899 commit 7283cbbCopy full SHA for 7283cbb
pydantic_extra_types/mongo_object_id.py
@@ -43,7 +43,7 @@ class MongoDocument(BaseModel):
43
OBJECT_ID_LENGTH = 24
44
45
@classmethod
46
- def __get_pydantic_core_schema__(cls, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
+ def __get_pydantic_core_schema__(cls, source: Any, handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
47
return core_schema.json_or_python_schema(
48
json_schema=core_schema.str_schema(min_length=cls.OBJECT_ID_LENGTH, max_length=cls.OBJECT_ID_LENGTH),
49
python_schema=core_schema.union_schema(
0 commit comments