From f179aff40b5d2acbcad44da3cd41110f2ee95f6c Mon Sep 17 00:00:00 2001 From: jrmccluskey Date: Wed, 18 Mar 2026 15:40:52 -0400 Subject: [PATCH] Address no-access pyrefly error --- 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 2775ec4061b6..305e66b85940 100644 --- a/sdks/python/apache_beam/utils/windowed_value.py +++ b/sdks/python/apache_beam/utils/windowed_value.py @@ -380,7 +380,7 @@ def from_windowed_values( 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 79fd75a46262..6247d79264a6 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