Skip to content

Commit 42a2124

Browse files
Copilotpwwang
andcommitted
Use underscore prefix for imports to avoid polluting locals()
Co-authored-by: pwwang <[email protected]>
1 parent 7a747a6 commit 42a2124

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datar/misc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
from typing import Any, Callable
1+
from typing import Any as _Any, Callable as _Callable
22

3-
from pipda import register_verb
3+
from pipda import register_verb as _register_verb
44

55
from .core.load_plugins import plugin as _plugin
66

77
locals().update(_plugin.hooks.misc_api())
88

99

10-
@register_verb(object)
11-
def pipe(data: Any, func: Callable, *args, **kwargs) -> Any:
10+
@_register_verb(object)
11+
def pipe(data: _Any, func: _Callable, *args, **kwargs) -> _Any:
1212
"""Apply a function to the data
1313
1414
This function is similar to pandas.DataFrame.pipe() and allows you to

0 commit comments

Comments
 (0)