This is an automated email from the ASF dual-hosted git repository.

jrmccluskey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new 39c0dde7080 [Gemini] Fix pyrefly check bad-typed-dict-key (#39415)
39c0dde7080 is described below

commit 39c0dde708094f94c2498fd31519f4da54b8a9c0
Author: Jack McCluskey <[email protected]>
AuthorDate: Tue Jul 28 09:15:31 2026 -0400

    [Gemini] Fix pyrefly check bad-typed-dict-key (#39415)
    
    * Fix pyrefly check bad-typed-dict-key
    
    * fix non PEP 585 type usage
---
 .../runners/interactive/dataproc/dataproc_cluster_manager.py           | 3 ++-
 sdks/python/pyproject.toml                                             | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/sdks/python/apache_beam/runners/interactive/dataproc/dataproc_cluster_manager.py
 
b/sdks/python/apache_beam/runners/interactive/dataproc/dataproc_cluster_manager.py
index 817d4f6b583..45de5cb7d85 100644
--- 
a/sdks/python/apache_beam/runners/interactive/dataproc/dataproc_cluster_manager.py
+++ 
b/sdks/python/apache_beam/runners/interactive/dataproc/dataproc_cluster_manager.py
@@ -20,6 +20,7 @@
 import logging
 import re
 import time
+from typing import Any
 from typing import Optional
 
 from apache_beam import version as beam_version
@@ -170,7 +171,7 @@ class DataprocClusterManager:
     """Calls _create_cluster with a configuration that enables FlinkRunner."""
     init_action_path = self.stage_init_action()
     # 
https://cloud.google.com/php/docs/reference/cloud-dataproc/latest/V1.Cluster
-    cluster = {
+    cluster: dict[str, Any] = {
         'project_id': self.cluster_metadata.project_id,
         'cluster_name': self.cluster_metadata.cluster_name,
         'config': {
diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml
index f89297cb766..c5e642a8b37 100644
--- a/sdks/python/pyproject.toml
+++ b/sdks/python/pyproject.toml
@@ -213,4 +213,3 @@ invalid-argument = "ignore"
 invalid-inheritance = "ignore"
 not-iterable = "ignore"
 unexpected-keyword = "ignore"
-bad-typed-dict-key = "ignore"

Reply via email to