done
This commit is contained in:
20
lib/python3.11/site-packages/narwhals/_compliant/window.py
Normal file
20
lib/python3.11/site-packages/narwhals/_compliant/window.py
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
Reference in New Issue
Block a user