Skip to content

Commit

Permalink
pydantic dependency lock
Browse files Browse the repository at this point in the history
  • Loading branch information
monoxgas committed Mar 19, 2024
1 parent 3a5b1fb commit 038d0f3
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 39 deletions.
4 changes: 1 addition & 3 deletions marque/scope.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import datetime
import typing as t
from dataclasses import dataclass
from datetime import timedelta

from pydantic import TypeAdapter

if t.TYPE_CHECKING:
from datetime import timedelta


@dataclass
class Tag:
Expand Down
7 changes: 0 additions & 7 deletions marque/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
import orjson
from pydantic import BaseModel

try:
from pydantic import BaseModel
except ImportError:
# Define a dummy BaseModel if pydantic isn't installed
class BaseModel: # type: ignore
pass


def json_serialize(obj: t.Any) -> str:
def custom_serializer(obj: t.Any) -> t.Any:
Expand Down
Loading

0 comments on commit 038d0f3

Please sign in to comment.