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