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 299f71d6957 Address no-access pyrefly error (#37888)
299f71d6957 is described below

commit 299f71d695702f33ca6eba770016f0b2eb8bb013
Author: Jack McCluskey <[email protected]>
AuthorDate: Thu Mar 26 10:27:16 2026 -0400

    Address no-access pyrefly error (#37888)
---
 sdks/python/apache_beam/utils/windowed_value.py | 2 +-
 sdks/python/pyrefly.toml                        | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/sdks/python/apache_beam/utils/windowed_value.py 
b/sdks/python/apache_beam/utils/windowed_value.py
index 2775ec4061b..305e66b8594 100644
--- a/sdks/python/apache_beam/utils/windowed_value.py
+++ b/sdks/python/apache_beam/utils/windowed_value.py
@@ -380,7 +380,7 @@ class HomogeneousWindowedBatch(WindowedBatch):
 
 
 try:
-  WindowedValue.timestamp_object = None
+  setattr(WindowedValue, 'timestamp_object', None)
 except TypeError:
   # When we're compiled, we can't dynamically add attributes to
   # the cdef class, but in this case it's OK as it's already present
diff --git a/sdks/python/pyrefly.toml b/sdks/python/pyrefly.toml
index 79fd75a4626..6247d79264a 100644
--- a/sdks/python/pyrefly.toml
+++ b/sdks/python/pyrefly.toml
@@ -57,5 +57,4 @@ bad-specialization = "ignore"
 bad-context-manager = "ignore"
 invalid-yield = "ignore"
 bad-argument-count = "ignore"
-bad-typed-dict-key = "ignore"
-no-access = "ignore"
\ No newline at end of file
+bad-typed-dict-key = "ignore"
\ No newline at end of file

Reply via email to