johnny05/18/2022, 4:25 PM
due to the decorator. I had a look and it seemed like modifying the type definitions in op_decorator.py in the following way:
(function) func_name: SolidDefinition
fixes it, but wanted to check here whether you guys had already considered this / excluded it as a fix for any reason
# existing @overload def op(name: Callable[..., Any]) -> SolidDefinition: ... # new _TFunc = TypeVar("_TFunc", bound=Callable[..., Any]) @overload def op(name: _TFunc) -> Union[_TFunc, SolidDefinition]: ...
alex05/18/2022, 4:27 PM
sean05/19/2022, 6:29 PM
johnny05/19/2022, 6:30 PM