Skip to content

Commit

Permalink
Fix formats and lints
Browse files Browse the repository at this point in the history
  • Loading branch information
shunping committed Oct 2, 2024
1 parent 0dbdd41 commit 1ac6690
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ def process_instruction_id(self, unused_instruction_id):
yield

def _get_one_interval_key(self, state_key, start):
# type: (...) -> str
# type: (...) -> bytes
state_key_copy = beam_fn_api_pb2.StateKey()
state_key_copy.CopyFrom(state_key)
state_key_copy.ordered_list_user_state.range.start = start
Expand Down
7 changes: 2 additions & 5 deletions sdks/python/apache_beam/transforms/userstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,15 +393,12 @@ def add(self, value: Tuple[Timestamp, Any]) -> None:
raise NotImplementedError(type(self))

def read_range(
self,
min_time_stamp: Timestamp,
self, min_time_stamp: Timestamp,
limit_time_stamp: Timestamp) -> Iterable[Tuple[Timestamp, Any]]:
raise NotImplementedError(type(self))

def clear_range(
self,
min_time_stamp: Timestamp,
limit_time_stamp: Timestamp) -> None:
self, min_time_stamp: Timestamp, limit_time_stamp: Timestamp) -> None:
raise NotImplementedError(type(self))


Expand Down

0 comments on commit 1ac6690

Please sign in to comment.