Skip to content

Commit 299f71d

Browse files
authored
Address no-access pyrefly error (#37888)
1 parent f8dbba1 commit 299f71d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

sdks/python/apache_beam/utils/windowed_value.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def from_windowed_values(
380380

381381

382382
try:
383-
WindowedValue.timestamp_object = None
383+
setattr(WindowedValue, 'timestamp_object', None)
384384
except TypeError:
385385
# When we're compiled, we can't dynamically add attributes to
386386
# the cdef class, but in this case it's OK as it's already present

sdks/python/pyrefly.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,4 @@ bad-specialization = "ignore"
5757
bad-context-manager = "ignore"
5858
invalid-yield = "ignore"
5959
bad-argument-count = "ignore"
60-
bad-typed-dict-key = "ignore"
61-
no-access = "ignore"
60+
bad-typed-dict-key = "ignore"

0 commit comments

Comments
 (0)