Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Apr 7, 2023
1 parent 990b3e0 commit 5f5ad8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydantic_core/core_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -3283,9 +3283,9 @@ def definition_reference_schema(
return dict_not_none(type='definition-ref', schema_ref=schema_ref, metadata=metadata, serialization=serialization)


MYPY: Literal[False] = False


MYPY = False
# See https://github.com/python/mypy/issues/14034 for details, in summary mypy is extremely slow to process this
# union which kills performance not just for pydantic, but even for code using pydantic
if not MYPY:
CoreSchema = Union[
AnySchema,
Expand Down

0 comments on commit 5f5ad8a

Please sign in to comment.