Skip to content

Commit

Permalink
Fix mypy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tolik0 committed May 28, 2024
1 parent 86d26b5 commit 5021d0c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get_stream_state(self) -> StreamState:
"cursor": cursor_state,
}
)
state = {"states": states}
state: dict[str, Any] = {"states": states}

parent_state = self._partition_router.get_parent_state()
if parent_state:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ def get_parent_state(self) -> Optional[Mapping[str, StreamState]]:
}
}
"""
combined_state = {}
combined_state: dict[str, StreamState] = {}
for s in self.stream_slicers:
combined_state.update(s.get_parent_state())
parent_state = s.get_parent_state()
if parent_state:
combined_state.update(parent_state)
return combined_state
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ definitions:
transformations:
- type: AddFields
fields:
- path: [ "issueId" ]
- path: ["issueId"]
value_type: string
value: "{{ stream_slice.issue_id }}"
$parameters:
Expand All @@ -1255,7 +1255,7 @@ definitions:
transformations:
- type: AddFields
fields:
- path: [ "issueId" ]
- path: ["issueId"]
value_type: string
value: "{{ stream_slice.issue_id }}"
$parameters:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ definitions:
type: RecordSelector
extractor:
type: DpathExtractor
field_path: [ "articles" ]
field_path: ["articles"]
$parameters:
name: "articles"
path: "help_center/incremental/articles"
Expand Down

0 comments on commit 5021d0c

Please sign in to comment.