mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Remove underscores in keys in description, to allow hunting underscores in values
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
{% if method.request.post_parameters %}
|
||||
{% if method.variadic_parameter %}
|
||||
post_parameters = {{ method.variadic_parameter.name }}s
|
||||
{% if method.request.postParameters %}
|
||||
{% if method.variadicParameter %}
|
||||
post_parameters = {{ method.variadicParameter.name }}s
|
||||
{% else %}
|
||||
post_parameters = {
|
||||
{% for parameter in method.mandatory_parameters %}
|
||||
{% for parameter in method.mandatoryParameters %}
|
||||
"{{ parameter.name }}": {{ parameter.name }},
|
||||
{% endfor %}
|
||||
}
|
||||
{% for parameter in method.optional_parameters %}
|
||||
{% for parameter in method.optionalParameters %}
|
||||
if {{ parameter.name }} is not DefaultValueForOptionalParameters:
|
||||
post_parameters[ "{{ parameter.name }}" ] = {{ parameter.name }}
|
||||
{% endfor %}
|
||||
@@ -30,7 +30,7 @@
|
||||
{% else %}
|
||||
None,
|
||||
{% endif %}
|
||||
{% if method.request.post_parameters %}
|
||||
{% if method.request.postParameters %}
|
||||
post_parameters
|
||||
{% else %}
|
||||
None
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{% if method.is_mutation %}
|
||||
{% if method.isMutation %}
|
||||
self.__useAttributes( data )
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
self{% for parameter in function.mandatory_parameters %}, {{ parameter.name }}{% endfor %}{% for parameter in function.optional_parameters %}, {{ parameter.name }} = DefaultValueForOptionalParameters{% endfor %}{% if function.variadic_parameter %}, *{{ function.variadic_parameter.name }}s{% endif %}
|
||||
self{% for parameter in function.mandatoryParameters %}, {{ parameter.name }}{% endfor %}{% for parameter in function.optionalParameters %}, {{ parameter.name }} = DefaultValueForOptionalParameters{% endfor %}{% if function.variadicParameter %}, *{{ function.variadicParameter.name }}s{% endif %}
|
||||
@@ -1 +1 @@
|
||||
{% if function.mandatory_parameters or function.optional_parameters or function.variadic_parameter %} {% for parameter in function.mandatory_parameters %}{% if forloop.counter0 > 0 %}, {% endif %}{{ parameter.name }}{% endfor %}{% if function.mandatory_parameters and function.optional_parameters %}, {% endif %}{% if function.optional_parameters %}[{% for parameter in function.optional_parameters %}{% if forloop.counter0 > 0 %}, {% endif %}{{ parameter.name }}{% endfor %}]{% endif %}{% if function.variadic_parameter %}{{ function.variadic_parameter.name }}, ...{% endif %} {% endif %}
|
||||
{% if function.mandatoryParameters or function.optionalParameters or function.variadicParameter %} {% for parameter in function.mandatoryParameters %}{% if forloop.counter0 > 0 %}, {% endif %}{{ parameter.name }}{% endfor %}{% if function.mandatoryParameters and function.optionalParameters %}, {% endif %}{% if function.optionalParameters %}[{% for parameter in function.optionalParameters %}{% if forloop.counter0 > 0 %}, {% endif %}{{ parameter.name }}{% endfor %}]{% endif %}{% if function.variadicParameter %}{{ function.variadicParameter.name }}, ...{% endif %} {% endif %}
|
||||
@@ -30,14 +30,14 @@ Attributes
|
||||
|
||||
* `{{ method.name|join:"_" }}({% include "ReferenceOfClasses.Parameters.md" with function=method only %})`{% include "ReferenceOfClasses.Type.md" with type=method.type only %}
|
||||
|
||||
{% for parameter in method.mandatory_parameters %}
|
||||
{% for parameter in method.mandatoryParameters %}
|
||||
* `{{ parameter.name }}`{% include "ReferenceOfClasses.Type.md" with type=parameter.type only %}
|
||||
{% endfor %}
|
||||
{% for parameter in method.optional_parameters %}
|
||||
{% for parameter in method.optionalParameters %}
|
||||
* `{{ parameter.name }}`{% include "ReferenceOfClasses.Type.md" with type=parameter.type only %}
|
||||
{% endfor %}
|
||||
{% if method.variadic_parameter %}
|
||||
* `{{ method.variadic_parameter.name }}`{% include "ReferenceOfClasses.Type.md" with type=method.variadic_parameter.type only %}
|
||||
{% if method.variadicParameter %}
|
||||
* `{{ method.variadicParameter.name }}`{% include "ReferenceOfClasses.Type.md" with type=method.variadicParameter.type only %}
|
||||
{% endif %}
|
||||
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user