Describe the Bug
Argument (self: Self@ExternalApiTemplateListApi) -> tuple[dict[str, bool | int | list[ExternalKnowledgeApiDict] | None], int] is not assignable to parameter view with type (@_, str, ParamSpec(@_)) -> @_ in function controllers.console.wraps.with_current_tenant_id
all I need to do is
to
def get(self, current_tenant_id: str): ...
so the error message should tell me I missing a str parameter at definition.
maybe the definition also can help a bit.
def with_current_tenant_id[T, **P, R](
view: Callable[Concatenate[T, str, P], R],
) -> Callable[Concatenate[T, P], R]:
@wraps(view)
def decorated(self: T, *args: P.args, **kwargs: P.kwargs) -> R:
_, current_tenant_id = current_account_with_tenant()
return view(self, current_tenant_id, *args, **kwargs)
return decorated
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
Describe the Bug
Argument
(self: Self@ExternalApiTemplateListApi) -> tuple[dict[str, bool | int | list[ExternalKnowledgeApiDict] | None], int]is not assignable to parameterviewwith type(@_, str, ParamSpec(@_)) -> @_in functioncontrollers.console.wraps.with_current_tenant_idall I need to do is
to
so the error message should tell me I missing a str parameter at definition.
maybe the definition also can help a bit.
Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response