Skip to content

Commit

Permalink
Fix mypy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Sep 17, 2024
1 parent f3b2bab commit b19cce2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pinecone/data/features/bulk_import.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from enum import Enum
from typing import Optional, Literal, Iterator, List
from typing import Optional, Literal, Iterator, List, Type, cast

from pinecone.utils.decorators import prerelease_feature
from pinecone.config.config import ConfigBuilder
Expand All @@ -20,7 +20,9 @@
for m in [StartImportResponse, ImportListResponse, ImportModel]:
install_json_repr_override(m)

ImportErrorMode = Enum("ImportErrorMode", ImportErrorModeClass.allowed_values[("on_error",)])
ImportErrorMode: Type[Enum] = cast(
Type[Enum], Enum("ImportErrorMode", ImportErrorModeClass.allowed_values[("on_error",)])
)


class ImportFeatureMixin:
Expand Down

0 comments on commit b19cce2

Please sign in to comment.