🐛 fix(util.py): exclude "kwargs" and "args" parameters from the generated template dictionary

The "kwargs" and "args" parameters are now excluded from the generated template dictionary. This ensures that only the relevant parameters are included in the template, improving the accuracy and usefulness of the generated template.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-29 18:37:33 -03:00
commit c834d91efd

View file

@ -165,7 +165,7 @@ def build_template_from_method(
"required": param.default == param.empty,
}
for name, param in params.items()
if name != "self"
if name not in ["self", "kwargs", "args"]
},
}