Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
hramezani committed Nov 8, 2023
1 parent 8248af7 commit 0556e31
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pydantic/_internal/_generate_schema.py
Expand Up @@ -35,7 +35,7 @@
from warnings import warn

from pydantic_core import CoreSchema, PydanticUndefined, core_schema, to_jsonable_python
from typing_extensions import Annotated, Final, Literal, TypeAliasType, TypedDict, get_args, get_origin, is_typeddict
from typing_extensions import Annotated, Literal, TypeAliasType, TypedDict, get_args, get_origin, is_typeddict

from ..annotated_handlers import GetCoreSchemaHandler, GetJsonSchemaHandler
from ..config import ConfigDict, JsonDict, JsonEncoder
Expand Down Expand Up @@ -1597,7 +1597,7 @@ def _get_prepare_pydantic_annotations_for_known_type(
) -> tuple[Any, list[Any]] | None:
from ._std_types_schema import PREPARE_METHODS

# This check for hashability is only necessary for python 3.7
# Check for hashability
try:
hash(obj)
except TypeError:
Expand Down
7 changes: 1 addition & 6 deletions pydantic/fields.py
Expand Up @@ -6,12 +6,7 @@
import typing
from copy import copy
from dataclasses import Field as DataclassField

try:
from functools import cached_property # type: ignore
except ImportError:
# python 3.7
cached_property = None
from functools import cached_property
from typing import Any, ClassVar
from warnings import warn

Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Expand Up @@ -66,7 +66,6 @@ dependencies = [
'typing-extensions>=4.6.1',
'annotated-types>=0.4.0',
"pydantic-core==2.13.0",
"importlib_metadata; python_version=='3.7'"
]
dynamic = ['version', 'readme']

Expand Down

0 comments on commit 0556e31

Please sign in to comment.