8000 Fix CoreSchema's workaround · pydantic/pydantic-core@434a0da · GitHub
[go: up one dir, main page]

Skip to content

Commit 434a0da

Browse files
committed
Fix CoreSchema's workaround
close #542
1 parent ed3a372 commit 434a0da

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pydantic_core/core_schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations as _annotations
22

33
import sys
4+
from collections.abc import Mapping
45
from datetime import date, datetime, time, timedelta
56
from typing import Any, Callable, Dict, List, Optional, Set, Type, Union
67

@@ -3472,7 +3473,7 @@ def definition_reference_schema(
34723473
DefinitionReferenceSchema,
34733474
]
34743475
elif False:
3475-
CoreSchema: TypeAlias = Dict[str, Any]
3476+
CoreSchema: TypeAlias = Mapping[str, Any]
34763477

34773478

34783479
# to update this, call `pytest -k test_core_schema_type_literal` and copy the output

0 commit comments

Comments
 (0)
0