Skip to content

Commit

Permalink
use text as the enum values instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
mdumandag committed Jun 24, 2024
1 parent 0ffed25 commit bef5d61
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions upstash_vector/types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass
import enum
from dataclasses import dataclass
from typing import Optional, List, Dict, TypedDict, Union, Protocol


Expand Down Expand Up @@ -125,10 +125,10 @@ class MetadataUpdateMode(enum.Enum):
according to the `RFC 7396 JSON Merge Patch` algorithm.
"""

OVERWRITE = 0
OVERWRITE = "OVERWRITE"
"""Overwrite the metadata, and set it to a new value."""

PATCH = 1
PATCH = "PATCH"
"""Patch the metadata according to Merge Patch algorithm."""


Expand Down

0 comments on commit bef5d61

Please sign in to comment.