team-10/venv/Lib/site-packages/narwhals/_compliant/window.py
2025-08-02 02:00:33 +02:00

20 lines
505 B
Python

from __future__ import annotations
from typing import TYPE_CHECKING, Generic
from narwhals._compliant.typing import NativeExprT_co
if TYPE_CHECKING:
from collections.abc import Sequence
__all__ = ["WindowInputs"]
class WindowInputs(Generic[NativeExprT_co]):
__slots__ = ("order_by", "partition_by")
def __init__(
self, partition_by: Sequence[str | NativeExprT_co], order_by: Sequence[str]
) -> None:
self.partition_by = partition_by
self.order_by = order_by