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.
_IncEx
1 parent 2419981 commit cd270e4Copy full SHA for cd270e4
python/pydantic_core/_pydantic_core.pyi
@@ -253,7 +253,9 @@ class SchemaValidator:
253
`None` if the schema has no default value, otherwise a [`Some`][pydantic_core.Some] containing the default.
254
"""
255
256
-_IncEx: TypeAlias = set[int] | set[str] | Mapping[int, _IncEx | Literal[True]] | Mapping[str, _IncEx | Literal[True]]
+# In reality, `bool` should be replaced by `Literal[True]` but mypy fails to correctly apply bidirectional type inference
257
+# (e.g. when using `{'a': {'b': True}}`).
258
+_IncEx: TypeAlias = set[int] | set[str] | Mapping[int, _IncEx | bool] | Mapping[str, _IncEx | bool]
259
260
@final
261
class SchemaSerializer:
0 commit comments