From 32de56f37613fa1c26b84742953b3a2cc0e1642c Mon Sep 17 00:00:00 2001 From: Samuel Colvin Date: Tue, 26 Mar 2024 08:00:21 -0600 Subject: [PATCH] fix types --- python/pydantic_core/core_schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/pydantic_core/core_schema.py b/python/pydantic_core/core_schema.py index eeeea9161..5722dc365 100644 --- a/python/pydantic_core/core_schema.py +++ b/python/pydantic_core/core_schema.py @@ -112,7 +112,7 @@ class CoreConfig(TypedDict, total=False): validation_error_cause: bool # default: False coerce_numbers_to_str: bool # default: False regex_engine: Literal['rust-regex', 'python-re'] # default: 'rust-regex' - cache_strings: bool | Literal['all', 'keys', 'none'] # default: 'True' + cache_strings: Union[bool, Literal['all', 'keys', 'none']] # default: 'True' IncExCall: TypeAlias = 'set[int | str] | dict[int | str, IncExCall] | None'