2019-12-22 15:22:19 +01:00
|
|
|
{% for p, info in api.all_parts.items() %}
|
2023-11-06 13:08:19 -05:00
|
|
|
{% if info.required %}{{ p }}: {{ info.type }}, {% endif %}
|
2019-12-22 15:22:19 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
|
2019-12-22 15:35:00 +01:00
|
|
|
{% if api.body %}
|
2023-11-06 13:08:19 -05:00
|
|
|
body{% if not api.body.required %}: Any=None{% else %}: Any{% endif %},
|
2019-12-22 15:22:19 +01:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
{% for p, info in api.all_parts.items() %}
|
2023-11-06 13:08:19 -05:00
|
|
|
{% if not info.required and not info.type == 'Any' %}{{ p }}: Optional[{{ info.type }}]=None, {% endif %}
|
|
|
|
|
{% if not info.required and info.type == 'Any' %}{{ p }}: {{ info.type }}=None, {% endif %}
|
2019-12-22 15:22:19 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
|
2023-11-06 13:08:19 -05:00
|
|
|
params: Any=None,
|
|
|
|
|
headers: Any=None,
|