Skip to content

Commit 80e07ea

Browse files
committed
unit test found bug for method call in default case: fixed
1 parent 6f32134 commit 80e07ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas_flavor/register.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(self, pandas_obj):
115115
def __call__(self, *args, **kwargs):
116116
global method_call_ctx_factory
117117
if method_call_ctx_factory is None:
118-
return method(obj, *args, **kwargs)
118+
return method(self._obj, *args, **kwargs)
119119

120120
return handle_pandas_extension_call(
121121
method, method_signature, self._obj, args, kwargs
@@ -144,7 +144,7 @@ def __init__(self, pandas_obj):
144144
def __call__(self, *args, **kwargs):
145145
global method_call_ctx_factory
146146
if method_call_ctx_factory is None:
147-
return method(obj, *args, **kwargs)
147+
return method(self._obj, *args, **kwargs)
148148

149149
return handle_pandas_extension_call(
150150
method, method_signature, self._obj, args, kwargs

0 commit comments

Comments
 (0)