Skip to content

Commit e30129d

Browse files
Made dims option of DenseVector optional (#1776) (#1795)
(cherry picked from commit cb99fd5) Co-authored-by: Miguel Grinberg <[email protected]>
1 parent 047e5ea commit e30129d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

elasticsearch_dsl/field.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,9 @@ def _deserialize(self, data):
341341
class DenseVector(Float):
342342
name = "dense_vector"
343343

344-
def __init__(self, dims, **kwargs):
344+
def __init__(self, **kwargs):
345345
kwargs["multi"] = True
346-
super().__init__(dims=dims, **kwargs)
346+
super().__init__(**kwargs)
347347

348348

349349
class SparseVector(Field):

0 commit comments

Comments
 (0)