Skip to content

Commit 80f12dd

Browse files
fixed mypy
1 parent bc70e3b commit 80f12dd

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

python/semantic_kernel/connectors/memory/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"AzureAISearchCollection": ".azure_ai_search",
77
"AzureAISearchSettings": ".azure_ai_search",
88
"AzureAISearchStore": ".azure_ai_search",
9-
"AzureCosmosDBNoSQLCollection": ".azure_cosmos_db",
10-
"AzureCosmosDBNoSQLCompositeKey": ".azure_cosmos_db",
11-
"AzureCosmosDBNoSQLSettings": ".azure_cosmos_db",
12-
"AzureCosmosDBNoSQLStore": ".azure_cosmos_db",
13-
"AzureCosmosDBforMongoDBCollection": ".azure_cosmos_db",
14-
"AzureCosmosDBforMongoDBSettings": ".azure_cosmos_db",
15-
"AzureCosmosDBforMongoDBStore": ".azure_cosmos_db",
9+
"CosmosNoSqlCollection": ".azure_cosmos_db",
10+
"CosmosNoSqlCompositeKey": ".azure_cosmos_db",
11+
"CosmosNoSqlSettings": ".azure_cosmos_db",
12+
"CosmosNoSqlStore": ".azure_cosmos_db",
13+
"CosmosMongoCollection": ".azure_cosmos_db",
14+
"CosmosMongoSettings": ".azure_cosmos_db",
15+
"CosmosMongoStore": ".azure_cosmos_db",
1616
"ChromaCollection": ".chroma",
1717
"ChromaStore": ".chroma",
1818
"PostgresCollection": ".postgres",

python/semantic_kernel/connectors/memory/__init__.pyi

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
from .azure_ai_search import AzureAISearchCollection, AzureAISearchSettings, AzureAISearchStore
44
from .azure_cosmos_db import (
5-
AzureCosmosDBforMongoDBSettings,
6-
AzureCosmosDBNoSQLCompositeKey,
7-
AzureCosmosDBNoSQLSettings,
85
CosmosMongoCollection,
6+
CosmosMongoSettings,
97
CosmosMongoStore,
108
CosmosNoSqlCollection,
9+
CosmosNoSqlCompositeKey,
10+
CosmosNoSqlSettings,
1111
CosmosNoSqlStore,
1212
)
1313
from .chroma import ChromaCollection, ChromaStore
@@ -25,14 +25,14 @@ __all__ = [
2525
"AzureAISearchCollection",
2626
"AzureAISearchSettings",
2727
"AzureAISearchStore",
28-
"AzureCosmosDBNoSQLCompositeKey",
29-
"AzureCosmosDBNoSQLSettings",
30-
"AzureCosmosDBforMongoDBSettings",
3128
"ChromaCollection",
3229
"ChromaStore",
3330
"CosmosMongoCollection",
31+
"CosmosMongoSettings",
3432
"CosmosMongoStore",
3533
"CosmosNoSqlCollection",
34+
"CosmosNoSqlCompositeKey",
35+
"CosmosNoSqlSettings",
3636
"CosmosNoSqlStore",
3737
"FaissCollection",
3838
"FaissStore",

python/semantic_kernel/data/definitions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ def _parse_vector_store_record_field_class(
391391
if (args := getattr(property_type, "__args__", None)) and NoneType in args and len(args) == 2:
392392
property_type = args[0]
393393
property_type_name = str(property_type) if hasattr(property_type, "__args__") else property_type.__name__
394-
return field_type(name=field.name, type_=property_type_name)
394+
return field_type(name=field.name, type=property_type_name)
395395

396396

397397
def _parse_vector_store_record_field_instance(

python/semantic_kernel/exceptions/vector_store_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,4 +81,5 @@ class VectorSearchOptionsException(VectorStoreOperationException):
8181
"VectorStoreModelSerializationException",
8282
"VectorStoreModelValidationError",
8383
"VectorStoreOperationException",
84+
"VectorStoreOperationNotSupportedException",
8485
]

0 commit comments

Comments
 (0)