Skip to content

Commit

Permalink
Fix _IncEx type annotation (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos authored Sep 6, 2024
1 parent f2a0bb8 commit 3bd1baa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions python/pydantic_core/_pydantic_core.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class SchemaValidator:
`None` if the schema has no default value, otherwise a [`Some`][pydantic_core.Some] containing the default.
"""

_IncEx: TypeAlias = set[int] | set[str] | dict[int, _IncEx] | dict[str, _IncEx] | None
_IncEx: TypeAlias = set[int] | set[str] | dict[int, _IncEx | bool] | dict[str, _IncEx | bool]

@final
class SchemaSerializer:
Expand All @@ -260,8 +260,8 @@ class SchemaSerializer:
value: Any,
*,
mode: str | None = None,
include: _IncEx = None,
exclude: _IncEx = None,
include: _IncEx | None = None,
exclude: _IncEx | None = None,
by_alias: bool = True,
exclude_unset: bool = False,
exclude_defaults: bool = False,
Expand Down Expand Up @@ -306,8 +306,8 @@ class SchemaSerializer:
value: Any,
*,
indent: int | None = None,
include: _IncEx = None,
exclude: _IncEx = None,
include: _IncEx | None = None,
exclude: _IncEx | None = None,
by_alias: bool = True,
exclude_unset: bool = False,
exclude_defaults: bool = False,
Expand Down Expand Up @@ -351,8 +351,8 @@ def to_json(
value: Any,
*,
indent: int | None = None,
include: _IncEx = None,
exclude: _IncEx = None,
include: _IncEx | None = None,
exclude: _IncEx | None = None,
by_alias: bool = True,
exclude_none: bool = False,
round_trip: bool = False,
Expand Down Expand Up @@ -426,8 +426,8 @@ def from_json(
def to_jsonable_python(
value: Any,
*,
include: _IncEx = None,
exclude: _IncEx = None,
include: _IncEx | None = None,
exclude: _IncEx | None = None,
by_alias: bool = True,
exclude_none: bool = False,
round_trip: bool = False,
Expand Down

0 comments on commit 3bd1baa

Please sign in to comment.