Skip to content

Commit

Permalink
refactor: PandasLikeExpr __repr__ and __init__ (#1585)
Browse files Browse the repository at this point in the history
- remove repeated variable definition from __init__
- add closing parenthesis to __repr__ string
  • Loading branch information
camriddell authored Dec 13, 2024
1 parent d995d2c commit 44cf9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def __init__(
self._depth = depth
self._function_name = function_name
self._root_names = root_names
self._depth = depth
self._output_names = output_names
self._implementation = implementation
self._backend_version = backend_version
Expand All @@ -53,6 +52,7 @@ def __repr__(self) -> str: # pragma: no cover
f"function_name={self._function_name}, "
f"root_names={self._root_names}, "
f"output_names={self._output_names}"
")"
)

def __narwhals_namespace__(self) -> PandasLikeNamespace:
Expand Down

0 comments on commit 44cf9e3

Please sign in to comment.