Skip to content

Commit

Permalink
don't use Self for now
Browse files Browse the repository at this point in the history
  • Loading branch information
flaport committed Jun 21, 2024
1 parent dc5eb91 commit db38351
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions meow/base_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from functools import wraps
from hashlib import md5
from typing import Any, Self
from typing import Any

import numpy as np
import orjson
Expand Down Expand Up @@ -67,7 +67,7 @@ def model_validate(
strict: bool | None = None,
from_attributes: bool | None = None,
context: dict[str, Any] | None = None,
) -> Self:
):
"""Validate a pydantic model instance.
Args:
Expand Down Expand Up @@ -101,7 +101,7 @@ def model_validate_json(
*,
strict: bool | None = None,
context: dict[str, Any] | None = None,
) -> Self:
):
if isinstance(json_data, str):
json_data = json_data.encode()
dct = orjson.loads(json_data)
Expand Down

0 comments on commit db38351

Please sign in to comment.