Skip to content

Commit

Permalink
chore: Make Ruff happy (#1917)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 30, 2023
1 parent 216080b commit e7191c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions singer_sdk/helpers/_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_state_if_exists(
tap_stream_id: str,
state_partition_context: dict | None = None,
key: str | None = None,
) -> t.Any | None:
) -> t.Any | None: # noqa: ANN401
"""Return the stream or partition state, creating a new one if it does not exist.
Args:
Expand Down Expand Up @@ -181,7 +181,9 @@ def write_starting_replication_value(
stream_or_partition_state[STARTING_MARKER] = to_json_compatible(initial_value)


def get_starting_replication_value(stream_or_partition_state: dict) -> t.Any | None:
def get_starting_replication_value(
stream_or_partition_state: dict,
) -> t.Any | None: # noqa: ANN401
"""Retrieve initial replication marker value from state."""
if not stream_or_partition_state:
return None
Expand Down

0 comments on commit e7191c7

Please sign in to comment.