Skip to content

Commit 39c0dde

Browse files
authored
[Gemini] Fix pyrefly check bad-typed-dict-key (#39415)
* Fix pyrefly check bad-typed-dict-key * fix non PEP 585 type usage
1 parent f456c02 commit 39c0dde

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sdks/python/apache_beam/runners/interactive/dataproc/dataproc_cluster_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import logging
2121
import re
2222
import time
23+
from typing import Any
2324
from typing import Optional
2425

2526
from apache_beam import version as beam_version
@@ -170,7 +171,7 @@ def create_flink_cluster(self) -> None:
170171
"""Calls _create_cluster with a configuration that enables FlinkRunner."""
171172
init_action_path = self.stage_init_action()
172173
# https://cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.Cluster
173-
cluster = {
174+
cluster: dict[str, Any] = {
174175
'project_id': self.cluster_metadata.project_id,
175176
'cluster_name': self.cluster_metadata.cluster_name,
176177
'config': {

sdks/python/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,4 +213,3 @@ invalid-argument = "ignore"
213213
invalid-inheritance = "ignore"
214214
not-iterable = "ignore"
215215
unexpected-keyword = "ignore"
216-
bad-typed-dict-key = "ignore"

0 commit comments

Comments
 (0)