Skip to content

Commit d0e36f3

Browse files
committed
fix: Use TypeVar defaults correctly?
- I thought what I had was allowed - but caused a runtime error in subclasses that *didn't* fill the missing `FromNumpyDT_contra` > TypeError: Too few arguments for <class 'narwhals._compliant.dataframe.CompliantDataFrame'>; actual 3, expected at least 4
1 parent b63fa86 commit d0e36f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

narwhals/_compliant/dataframe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050

5151
class CompliantDataFrame(
52-
NumpyConvertible["_2DArray"],
52+
NumpyConvertible["_2DArray", "_2DArray"],
5353
_StoresNative[NativeFrameT_co],
5454
Sized,
5555
Protocol[CompliantSeriesT, CompliantExprT_contra, NativeFrameT_co],

0 commit comments

Comments
 (0)