Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 172b27a

Browse files
committed
df: base: No class names with . for operations
Signed-off-by: John Andersen <[email protected]>
1 parent 26075c5 commit 172b27a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dffml/df/base.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,12 @@ def wrap(func):
194194
kwargs["conditions"] = []
195195

196196
func.op = Operation(**kwargs)
197-
cls_name = func.op.name.replace("_", " ").title().replace(" ", "")
197+
cls_name = (
198+
func.op.name.replace(".", " ")
199+
.replace("_", " ")
200+
.title()
201+
.replace(" ", "")
202+
)
198203

199204
sig = inspect.signature(func)
200205
# Check if the function uses the operation implementation context

0 commit comments

Comments
 (0)