Skip to content

Commit 4fd1744

Browse files
authored
[Gemini] Fix pyrefly check unexpected-keyword (#39528)
* Fix pyrefly check unexpected-keyword * fix field usage instead of adding a new field
1 parent 3926b88 commit 4fd1744

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

sdks/python/apache_beam/examples/snippets/transforms/elementwise/enrichment_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def pre_milvus_enrichment() -> VectorDBContainerInfo:
380380
uri=db.uri,
381381
user=db.user,
382382
password=db.password,
383-
db_id=db.id,
383+
db_name=db.id,
384384
token=db.token)
385385
collection_name = MilvusTestHelpers.initialize_db_with_data(
386386
connection_params)

sdks/python/apache_beam/ml/inference/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def __init__(self, mh_map: dict[str, ModelHandler]):
573573
# Map key for a model to a unique tag that will persist for the life of
574574
# that model in memory. A new tag will be generated if a model is swapped
575575
# out of memory and reloaded.
576-
self._tag_map: dict[str, str] = OrderedDict()
576+
self._tag_map: OrderedDict[str, str] = OrderedDict()
577577
# Map a tag to a multiprocessshared model object for that tag. Each entry
578578
# of this map should last as long as the corresponding entry in _tag_map.
579579
self._proxy_map: dict[str, multi_process_shared.MultiProcessShared] = {}

sdks/python/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,5 +212,4 @@ not-callable = "ignore"
212212
invalid-argument = "ignore"
213213
invalid-inheritance = "ignore"
214214
not-iterable = "ignore"
215-
unexpected-keyword = "ignore"
216215
bad-class-definition = "ignore"

0 commit comments

Comments
 (0)