Skip to content

Commit 7db4ffe

Browse files
committed
Fix linters
1 parent d93de6d commit 7db4ffe

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

quixstreams/dataframe/dataframe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,12 +1536,12 @@ def session_window(
15361536
) -> SessionWindowDefinition:
15371537
"""
15381538
Create a session window transformation on this StreamingDataFrame.
1539-
1539+
15401540
Session windows group events that occur within a specified timeout period.
15411541
A session starts with the first event and extends each time a new event arrives
15421542
within the timeout period. The session closes after the timeout period with no
15431543
new events.
1544-
1544+
15451545
Unlike fixed-time windows, session windows have dynamic durations based on the
15461546
actual events and their timing, making them ideal for user activity tracking,
15471547
fraud detection, and other event-driven scenarios.

quixstreams/dataframe/windows/definitions.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -539,13 +539,13 @@ def _get_name(self, func_name: Optional[str]) -> str:
539539
class SessionWindowDefinition(WindowDefinition):
540540
"""
541541
Definition for session windows that group events by activity sessions.
542-
542+
543543
Session windows group events that occur within a specified timeout period.
544544
A session starts with the first event and extends each time a new event arrives
545545
within the timeout period. The session closes after the timeout period with no
546546
new events.
547547
"""
548-
548+
549549
def __init__(
550550
self,
551551
timeout_ms: int,
@@ -589,7 +589,8 @@ def _create_window(
589589
) -> SessionWindow:
590590
if func_name:
591591
window_type: Union[
592-
type[SessionWindowSingleAggregation], type[SessionWindowMultiAggregation]
592+
type[SessionWindowSingleAggregation],
593+
type[SessionWindowMultiAggregation],
593594
] = SessionWindowSingleAggregation
594595
else:
595596
window_type = SessionWindowMultiAggregation

0 commit comments

Comments
 (0)