Skip to content

Commit

Permalink
Restore old pydantic support
Browse files Browse the repository at this point in the history
  • Loading branch information
Gallaecio committed Aug 28, 2024
1 parent db9e117 commit 6666fcd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion zyte_spider_templates/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
from typing import Dict, List, Optional, Union

from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
from pydantic.config import JsonDict

try:
from pydantic.config import JsonDict
except ImportError:
JsonValue = Union[int, float, str, bool, None, List["JsonValue"], "JsonDict"]
JsonDict = Dict[str, JsonValue]

from zyte_spider_templates._geolocations import (
GEOLOCATION_OPTIONS_WITH_CODE,
Expand Down

0 comments on commit 6666fcd

Please sign in to comment.