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 583601b13bf Fix pyrefly check bad-context-manager (#39418)
583601b13bf is described below

commit 583601b13bf592ccb5a3ba9d910239e493f36ac8
Author: Jack McCluskey <[email protected]>
AuthorDate: Wed Jul 22 09:07:34 2026 -0400

    Fix pyrefly check bad-context-manager (#39418)
---
 sdks/python/apache_beam/runners/interactive/recording_manager.py | 2 +-
 sdks/python/pyproject.toml                                       | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/sdks/python/apache_beam/runners/interactive/recording_manager.py 
b/sdks/python/apache_beam/runners/interactive/recording_manager.py
index c19b60b64fd..cabcca558dc 100644
--- a/sdks/python/apache_beam/runners/interactive/recording_manager.py
+++ b/sdks/python/apache_beam/runners/interactive/recording_manager.py
@@ -105,7 +105,7 @@ class AsyncComputationResult:
     self.cancel()
 
   def update_display(self, msg: str, progress: Optional[float] = None):
-    if not IS_IPYTHON:
+    if not IS_IPYTHON or self._output_widget is None:
       print(f'AsyncCompute: {msg}')
       return
 
diff --git a/sdks/python/pyproject.toml b/sdks/python/pyproject.toml
index 52f71346624..5d78db86336 100644
--- a/sdks/python/pyproject.toml
+++ b/sdks/python/pyproject.toml
@@ -213,7 +213,6 @@ invalid-inheritance = "ignore"
 not-iterable = "ignore"
 unexpected-keyword = "ignore"
 bad-specialization = "ignore"
-bad-context-manager = "ignore"
 invalid-yield = "ignore"
 bad-argument-count = "ignore"
 bad-typed-dict-key = "ignore"

Reply via email to