Skip to content

Commit ee65cbd

Browse files
jeremymanningclaude
andcommitted
Fix cell_magic decorator mock to handle flexible arguments
- Change decorator wrapper from (self, line, cell) to (*args, **kwargs) - Resolves remaining TypeError in GitHub Actions test environment - Ensures robust handling of method call variations across environments Fixes final failing test: test_clusterfy_magic_without_ipython All 288 tests now pass with full CI/CD compatibility. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9f4f662 commit ee65cbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clustrix/notebook_magic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def magics_class(cls):
3535

3636
def cell_magic(name):
3737
def decorator(func):
38-
def wrapper(self, line, cell):
39-
return func(self, line, cell)
38+
def wrapper(*args, **kwargs):
39+
return func(*args, **kwargs)
4040

4141
return wrapper
4242

0 commit comments

Comments
 (0)