Skip to content

Commit 76dbde2

Browse files
chore: Add CompliantFrame._with_native (#3140)
* chore: Add `CompliantFrame._with_native` - Part of #2713 Noticed this was missing when trying to refactor some of `_utils.py` - which used `Any` * refactor: sort members alphabetically Co-authored-by: Francesco Bruzzesi <[email protected]> --------- Co-authored-by: Francesco Bruzzesi <[email protected]>
1 parent 69df278 commit 76dbde2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

narwhals/_compliant/dataframe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class CompliantFrame(
9999

100100
def __native_namespace__(self) -> ModuleType: ...
101101
def __narwhals_namespace__(self) -> Any: ...
102+
def _with_native(self, df: _NativeFrameT) -> Self: ...
102103
def _with_version(self, version: Version) -> Self: ...
103104
@classmethod
104105
def from_native(cls, data: _NativeFrameT, /, *, context: _LimitedContext) -> Self: ...

0 commit comments

Comments
 (0)