mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Use a special value for not set attributes and parameters
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
post_parameters = dict()
|
||||
{% endif %}
|
||||
{% for parameter in method.optionalParameters %}
|
||||
if {{ parameter.name }} is not DefaultValueForOptionalParameters:
|
||||
if {{ parameter.name }} is not GithubObject.NotSet:
|
||||
post_parameters[ "{{ parameter.name }}" ] = {{ parameter.name }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
@@ -24,7 +24,7 @@
|
||||
{% if method.optionalParameters %}
|
||||
url_parameters = dict()
|
||||
{% for parameter in method.optionalParameters %}
|
||||
if {{ parameter.name }} is not DefaultValueForOptionalParameters:
|
||||
if {{ parameter.name }} is not GithubObject.NotSet:
|
||||
url_parameters[ "{{ parameter.name }}" ] = {{ parameter.name }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user