Skip to content

Commit 583601b

Browse files
authored
Fix pyrefly check bad-context-manager (#39418)
1 parent aa8869c commit 583601b

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

sdks/python/apache_beam/runners/interactive/recording_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _cancel_clicked(self, b):
105105
self.cancel()
106106

107107
def update_display(self, msg: str, progress: Optional[float] = None):
108-
if not IS_IPYTHON:
108+
if not IS_IPYTHON or self._output_widget is None:
109109
print(f'AsyncCompute: {msg}')
110110
return
111111

sdks/python/pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ invalid-inheritance = "ignore"
213213
not-iterable = "ignore"
214214
unexpected-keyword = "ignore"
215215
bad-specialization = "ignore"
216-
bad-context-manager = "ignore"
217216
invalid-yield = "ignore"
218217
bad-argument-count = "ignore"
219218
bad-typed-dict-key = "ignore"

0 commit comments

Comments
 (0)