uncomment if needed

This commit is contained in:
Diogo Sousa
2023-07-05 17:07:32 +01:00
parent 4c25b9e040
commit 6eff39f4ad

View File

@@ -209,6 +209,17 @@ class Router:
f"Invalid signature: {func.__name__}. standard_params parameter must be of type StandardParams."
)
# TODO: Uncomment if we want extra_params to be mandatory
# if "extra_params" not in func.__annotations__:
# raise AttributeError(
# f"Invalid signature: {func.__name__}. Missing extra_params parameter."
# )
# if func.__annotations__["extra_params"] != ExtraParams:
# raise TypeError(
# f"Invalid signature: {func.__name__}. extra_params parameter must be of type ExtraParams."
# )
@staticmethod
def inject_dependency(
func: Callable[P, CommandOutput], arg: str, callable_: Any