Skip to content

Commit 6456287

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent e465c8a commit 6456287

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pandas_flavor/register.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,33 +20,33 @@ def handle_pandas_extension_call(method, method_signature, obj, args, kwargs):
2020
2121
When `method_call_ctx_factory` is None, the implementation calls the registered method with unmodified args and kwargs and returns underlying method result.
2222
23-
When `method_call_ctx_factory` is not None, `method_call_ctx_factory` is expected to refer to the function to create the context object.
23+
When `method_call_ctx_factory` is not None, `method_call_ctx_factory` is expected to refer to the function to create the context object.
2424
The context object will be used to process inputs and outputs of `method` calls.
2525
It is also possible that the context object method `handle_start_method_call`
2626
will modify original args and kwargs before `method` call.
2727
2828
`method_call_ctx_factory` is a function that should have the following signature:
29-
29+
3030
`f(method_name: str, args: list, kwargs: dict) -> MethodCallCtx`
3131
3232
3333
MethodCallCtx is an abstract class:
3434
class MethodCallCtx(abc.ABC):
3535
3636
@abstractmethod
37-
def __enter__(self) -> None:
37+
def __enter__(self) -> None:
3838
raise NotImplemented
3939
4040
@abstractmethod
41-
def __exit__(self, exc_type, exc_value, traceback) -> None:
41+
def __exit__(self, exc_type, exc_value, traceback) -> None:
4242
raise NotImplemented
4343
4444
@abstractmethod
45-
def handle_start_method_call(self, method_name: str, method_signature: inspect.Signature, method_args: list, method_kwargs: dict) -> tuple(list, dict):
45+
def handle_start_method_call(self, method_name: str, method_signature: inspect.Signature, method_args: list, method_kwargs: dict) -> tuple(list, dict):
4646
raise NotImplemented
4747
4848
@abstractmethod
49-
def handle_end_method_call(self, ret: object) -> None:
49+
def handle_end_method_call(self, ret: object) -> None:
5050
raise NotImplemented
5151
5252

0 commit comments

Comments
 (0)