Skip to content

Commit 3b50935

Browse files
committed
chore: Accept dtype in CompliantSeries.from_iterable
1 parent 697bb2c commit 3b50935

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

narwhals/_compliant/series.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,13 @@ def _to_expr(self) -> CompliantExpr[Any, Self]: ...
7070
def from_numpy(cls, data: Into1DArray, /, *, context: _FullContext) -> Self: ...
7171
@classmethod
7272
def from_iterable(
73-
cls, data: Iterable[Any], /, *, context: _FullContext, name: str = ""
73+
cls,
74+
data: Iterable[Any],
75+
/,
76+
*,
77+
context: _FullContext,
78+
name: str = "",
79+
dtype: DType | type[DType] | None = None,
7480
) -> Self: ...
7581
def _change_version(self, version: Version) -> Self: ...
7682

0 commit comments

Comments
 (0)