Skip to content

Commit 32fea88

Browse files
committed
fix(typings): Improve ic debugger type hints to include **kwargs
The `ic` debugger's `__call__` method accepts arbitrary keyword arguments for configuration. The previous type stubs for `_IceCreamDebugger.__call__` did not include `**kwargs`, which could lead to type checking errors when `ic` was used with keyword arguments. This change updates the overloads to correctly reflect the accepted arguments.
1 parent 97e9a62 commit 32fea88

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

template/typings/__builtins__.pyi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ from typing import overload, type_check_only
88
@type_check_only
99
class _IceCreamDebugger:
1010
@overload
11-
def __call__(self) -> None: ...
11+
def __call__(self, **kwargs) -> None: ...
1212
@overload
13-
def __call__[T](self, arg: T) -> T: ...
13+
def __call__[T](self, arg: T, **kwargs) -> T: ...
1414
@overload
1515
def __call__[T1, T2, *Ts](
16-
self, arg1: T1, arg2: T2, *args: *Ts
16+
self, arg1: T1, arg2: T2, *args: *Ts, **kwargs
1717
) -> tuple[T1, T2, *Ts]: ...
1818

1919
ic: _IceCreamDebugger

0 commit comments

Comments
 (0)