Skip to content

Commit 7283cbb

Browse files
committed
Fix py38 type hint
1 parent b1ad899 commit 7283cbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydantic_extra_types/mongo_object_id.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class MongoDocument(BaseModel):
4343
OBJECT_ID_LENGTH = 24
4444

4545
@classmethod
46-
def __get_pydantic_core_schema__(cls, source: type[Any], handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
46+
def __get_pydantic_core_schema__(cls, source: Any, handler: GetCoreSchemaHandler) -> core_schema.CoreSchema:
4747
return core_schema.json_or_python_schema(
4848
json_schema=core_schema.str_schema(min_length=cls.OBJECT_ID_LENGTH, max_length=cls.OBJECT_ID_LENGTH),
4949
python_schema=core_schema.union_schema(

0 commit comments

Comments
 (0)